libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr85397-1.c
blob46e31d1790b75f45cbf53acaca65c542f476f283
1 /* { dg-do run { target i?86-*-* x86_64-*-* } } */
2 /* { dg-require-effective-target cet } */
3 /* { dg-additional-options "-fcf-protection" } */
5 #define DEPTH 1000
7 int
8 x(int a)
10 __label__ xlab;
11 void y(int a)
13 if (a==0)
14 goto xlab;
15 y (a-1);
17 y (a);
18 xlab:;
19 return a;
22 int
23 main ()
25 if (x (DEPTH) != DEPTH)
26 __builtin_abort ();
28 return 0;