Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / stackalign / non-local-goto-4.c
blobd30572364905d987068e17b32e497b71d7fe919b
1 /* { dg-do run } */
2 /* { dg-require-effective-target nonlocal_goto } */
4 extern void abort (void);
5 extern void exit (int);
7 #ifdef STACK_SIZE
8 #define DEPTH ((STACK_SIZE) / 512 + 1)
9 #else
10 #define DEPTH 1000
11 #endif
13 #if ! defined (NO_LABEL_VALUES) && !defined (NO_TRAMPOLINES)
14 int
15 x(int a)
17 __label__ xlab;
18 void y(int a)
20 if (a==0)
21 goto xlab;
22 y (a-1);
24 y (a);
25 xlab:;
26 return a;
28 #endif
30 int
31 main ()
33 #if ! defined (NO_LABEL_VALUES) && !defined (NO_TRAMPOLINES)
34 if (x (DEPTH) != DEPTH)
35 abort ();
36 #endif
37 exit (0);