* gcc.dg/tree-ssa/pr21985.c: Use size_t.
authorRichard Henderson <rth@redhat.com>
Sun, 19 Jun 2005 23:59:55 +0000 (16:59 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 19 Jun 2005 23:59:55 +0000 (16:59 -0700)
From-SVN: r101196

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr21985.c

index 92b2b71..7e95785 100644 (file)
@@ -1,3 +1,7 @@
+2005-06-19  Richard Henderson  <rth@redhat.com>
+
+       * gcc.dg/tree-ssa/pr21985.c: Use size_t.
+
 2005-06-19  Joseph S. Myers  <joseph@codesourcery.com>
 
        * g++.dg/abi/mangle24.C, g++.dg/abi/mangle25.C: New tests.
index e940310..da0a370 100644 (file)
@@ -10,20 +10,21 @@ struct
     } a[100];
 } a;
 
-void foo(unsigned);
-unsigned *bar (void);
+typedef __SIZE_TYPE__ size_t;
+void foo(size_t);
+size_t *bar (void);
 
 int
 main (void)
 {
-  unsigned *b = bar ();
+  size_t *b = bar ();
 
   /* This should be folded.  */
   foo (&a.a[50].a - &a.a[33].b);
-  foo ((unsigned) &a.a[50].b - (unsigned) &a);
+  foo ((size_t) &a.a[50].b - (size_t) &a);
 
   /* And this should not.  */
-  foo ((unsigned) &b - (unsigned) b);
+  foo ((size_t) &b - (size_t) b);
   return 0;
 }