C99 testsuite readiness: Compile more tests with -std=gnu89
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 930513-2.c
blob9eba0a2ddc4544016f275e1e268483a63445cfe4
1 /* { dg-additional-options "-std=gnu89" } */
3 sub3 (i)
4 const int *i;
8 eq (a, b)
10 static int i = 0;
11 if (a != i)
12 abort ();
13 i++;
16 main ()
18 int i;
20 for (i = 0; i < 4; i++)
22 const int j = i;
23 int k;
24 sub3 (&j);
25 k = j;
26 eq (k, k);
28 exit (0);