preprocessor: Create the parser before handling command-line includes [PR115312]
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20030105-1.c
blobc2a9a8da1de91f1639689f2e463135cfbf554116
1 void abort (void);
2 void exit (int);
4 int __attribute__ ((noinline))
5 foo ()
7 const int a[8] = { 0, 1, 2, 3, 4, 5, 6, 7 };
8 int i, sum;
10 sum = 0;
11 for (i = 0; i < sizeof (a) / sizeof (*a); i++)
12 sum += a[i];
14 return sum;
17 int
18 main ()
20 if (foo () != 28)
21 abort ();
22 exit (0);