8sa1-gcc/gcc/testsuite/gcc.c-torture/execute/960218-1.c

23 lines
163 B
C
Raw Normal View History

1997-08-19 03:34:40 -04:00
int glob;
g (x)
{
glob = x;
return 0;
}
f (x)
{
int a = ~x;
while (a)
a = g (a);
}
main ()
{
f (3);
if (glob != -4)
abort ();
exit (0);
}