8sa1-gcc/gcc/testsuite/gcc.c-torture/execute/930513-2.c
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

28 lines
258 B
C

sub3 (i)
const int *i;
{
}
eq (a, b)
{
static int i = 0;
if (a != i)
abort ();
i++;
}
main ()
{
int i;
for (i = 0; i < 4; i++)
{
const int j = i;
int k;
sub3 (&j);
k = j;
eq (k, k);
}
exit (0);
}