Commit 771151dc by Richard Henderson Committed by Richard Henderson

* gcc.dg/tree-ssa/pr21985.c: Use size_t.

From-SVN: r101196
parent 7f7b1718
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.
......
......@@ -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;
}
......
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