Commit 80e08b30 by Richard Henderson Committed by Richard Henderson

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
parent 54fa7415
2000-06-05 Richard Henderson <rth@cygnus.com>
* gcc.c-torture/execute/20000605-2.c: New test.
* gcc.c-torture/execute/20000605-3.c: New test.
2000-06-06 David Billinghurst <David Billinghurst@riotinto.com.au> 2000-06-06 David Billinghurst <David Billinghurst@riotinto.com.au>
* g77.f-torture/execute/20000503-1.x: New file. * g77.f-torture/execute/20000503-1.x: New file.
......
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);
}
struct F { int x; int y; };
int main()
{
int timeout = 0;
int x = 0;
while (1)
{
const struct F i = { x++, };
if (i.x > 0)
break;
if (++timeout > 5)
goto die;
}
return 0;
die:
abort ();
}
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