gcc/testsuite/gcc.c-torture/execute/930406-1.c
raw| 1 | /* { dg-add-options stack_size } */ |
| 2 | |
| 3 | void exit (int); |
| 4 | |
| 5 | void |
| 6 | f(void) |
| 7 | { |
| 8 | int x = 1; |
| 9 | #if defined(STACK_SIZE) |
| 10 | char big[STACK_SIZE/2]; |
| 11 | #else |
| 12 | char big[0x1000]; |
| 13 | #endif |
| 14 | |
| 15 | ({ |
| 16 | __label__ mylabel; |
| 17 | mylabel: |
| 18 | x++; |
| 19 | if (x != 3) |
| 20 | goto mylabel; |
| 21 | }); |
| 22 | exit(0); |
| 23 | } |
| 24 | |
| 25 | int |
| 26 | main(void) |
| 27 | { |
| 28 | f(); |
| 29 | } |