8sa1-gcc/gcc/testsuite/gcc.c-torture/execute/20000605-2.c
Richard Henderson 80e08b3052 20000605-2.c: New test.
* gcc.c-torture/execute/20000605-2.c: New test.
        * gcc.c-torture/execute/20000605-3.c: New test.

From-SVN: r34437
2000-06-06 13:54:30 -07:00

19 lines
246 B
C

struct F { int i; };
void f1(struct F *x, struct F *y)
{
int timeout = 0;
for (; ((const struct F*)x)->i < y->i ; x->i++)
if (++timeout > 5)
abort ();
}
main()
{
struct F x, y;
x.i = 0;
y.i = 1;
f1 (&x, &y);
exit (0);
}