Add effective target stack_size
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 930106-1.c
blob41add7dc25d8a9f6b4712cf968f4f7e35fba838b
1 /* { dg-additional-options "-DSTACK_SIZE=[dg-effective-target-value stack_size]" { target { stack_size } } } */
3 #if defined (STACK_SIZE)
4 #define DUMMY_SIZE 9
5 #else
6 #define DUMMY_SIZE 399999
7 #endif
9 double g()
11 return 1.0;
14 f()
16 char dummy[DUMMY_SIZE];
17 double f1, f2, f3;
18 f1 = g();
19 f2 = g();
20 f3 = g();
21 return f1 + f2 + f3;
24 main()
26 if (f() != 3.0)
27 abort();
28 exit(0);