preprocessor: Create the parser before handling command-line includes [PR115312]
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20000717-3.c
blobd8a3ffa6a2d2e77ce45dca296be4287d4d8d3fc1
1 /* { dg-additional-options "-std=gnu89" } */
3 int c = -1;
5 foo (p)
6 int *p;
8 int x;
9 int a;
11 a = p[0];
12 x = a + 5;
13 a = c;
14 p[0] = x - 15;
15 return a;
18 int main()
20 int b = 1;
21 int a = foo(&b);
23 if (a != -1 || b != (1 + 5 - 15))
24 abort ();
26 exit (0);