OSDN Git Service

* gcc.dg/20020426-2.c: Improve type safety wrt unsignedness.
authormrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Jul 2004 02:21:04 +0000 (02:21 +0000)
committermrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Jul 2004 02:21:04 +0000 (02:21 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84739 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20020426-2.c

index b98486d..5d763cc 100644 (file)
@@ -1,3 +1,7 @@
+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>
 
        PR target/16325
index 18a1727..56a478f 100644 (file)
@@ -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;
 }
 
-int a[19] = { 3, 4, 0, 2, 2, [17] = 3, 3 };
-int d[19];
+unsigned int a[19] = { 3, 4, 0, 2, 2, [17] = 3, 3 };
+unsigned int d[19];
 A h[1440];
 
 int
 main (void)
 {
-  int b = 0, c = 0;
+  unsigned int b = 0, c = 0;
   A *e = 0;
   foo (a, 19, 19, 0, 0, &e, &b, h, &c, d);
   exit (0);