Commit cd9dd3ee by Mike Stump Committed by Mike Stump

* gcc.dg/20020426-2.c: Improve type safety wrt unsignedness.

From-SVN: r84739
parent 951120ea
2004-07-14 Mike Stump <mrs@apple.com>
* gcc.dg/20020426-2.c: Improve type safety wrt unsignedness.
2004-07-14 James E Wilson <wilson@specifixinc.com> 2004-07-14 James E Wilson <wilson@specifixinc.com>
PR target/16325 PR target/16325
......
...@@ -160,14 +160,14 @@ foo (unsigned int *b, unsigned int n, unsigned int s, const unsigned int *d, ...@@ -160,14 +160,14 @@ foo (unsigned int *b, unsigned int n, unsigned int s, const unsigned int *d,
return y != 0 && g != 1 ? (-5) : 0; return y != 0 && g != 1 ? (-5) : 0;
} }
int a[19] = { 3, 4, 0, 2, 2, [17] = 3, 3 }; unsigned int a[19] = { 3, 4, 0, 2, 2, [17] = 3, 3 };
int d[19]; unsigned int d[19];
A h[1440]; A h[1440];
int int
main (void) main (void)
{ {
int b = 0, c = 0; unsigned int b = 0, c = 0;
A *e = 0; A *e = 0;
foo (a, 19, 19, 0, 0, &e, &b, h, &c, d); foo (a, 19, 19, 0, 0, &e, &b, h, &c, d);
exit (0); exit (0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment