preprocessor: Create the parser before handling command-line includes [PR115312]
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20020314-1.c
blob8484256fc54e4e9f0499cab7acb938a67d9f624b
1 /* { dg-require-effective-target alloca } */
2 /* { dg-additional-options "-fpermissive" } */
3 void f(void * a, double y)
7 double g (double a, double b, double c, double d)
9 double x, y, z;
10 void *p;
12 x = a + b;
13 y = c * d;
15 p = alloca (16);
17 f(p, y);
18 z = x * y * a;
20 return z + b;
23 main ()
25 double a, b, c, d;
26 a = 1.0;
27 b = 0.0;
28 c = 10.0;
29 d = 0.0;
31 if (g (a, b, c, d) != 0.0)
32 abort ();
34 if (a != 1.0 || b != 0.0 || c != 10.0 || d != 0.0)
35 abort ();
37 exit (0);