RISC-V: Add testcases for unsigned .SAT_SUB scalar form 12
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / comp-goto-2.c
blob7c5da19620e4697875296d51f3cf10862dc1ddab
1 /* { dg-require-effective-target label_values } */
2 /* { dg-require-effective-target trampolines } */
3 /* { dg-add-options stack_size } */
4 /* { dg-additional-options "-std=gnu89" } */
6 /* A slight variation of 920501-7.c. */
8 #ifdef STACK_SIZE
9 #define DEPTH ((STACK_SIZE) / 512 + 1)
10 #else
11 #define DEPTH 1000
12 #endif
14 x(a)
16 __label__ xlab;
17 void y(a)
19 void *x = &&llab;
20 if (a==-1)
21 goto *x;
22 if (a==0)
23 goto xlab;
24 llab:
25 y (a-1);
27 y (a);
28 xlab:;
29 return a;
32 main ()
35 if (x (DEPTH) != DEPTH)
36 abort ();
38 exit (0);