gcc/testsuite/gcc.dg/pr26983.c
raw| 1 | /* { dg-do link } */ |
| 2 | /* { dg-require-effective-target indirect_jumps } */ |
| 3 | |
| 4 | /* This used to cause a linker failure because GCC would output |
| 5 | assembler code referencing labels that it had not output. */ |
| 6 | |
| 7 | void *jmpbuf[6]; |
| 8 | |
| 9 | void |
| 10 | foo (void) |
| 11 | { |
| 12 | __builtin_setjmp (jmpbuf); |
| 13 | } |
| 14 | |
| 15 | int |
| 16 | main (void) |
| 17 | { |
| 18 | return 0; |
| 19 | } |
| 20 |