gcc/testsuite/gcc.dg/torture/pr59993.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-effective-target indirect_jumps } */ |
| 3 | |
| 4 | #include <setjmp.h> |
| 5 | |
| 6 | extern int optind; |
| 7 | jmp_buf jump_buf; |
| 8 | void foo (jmp_buf, int); |
| 9 | void bar (char *); |
| 10 | int |
| 11 | main (int argc, char **argv) |
| 12 | { |
| 13 | foo (jump_buf, setjmp(jump_buf)); |
| 14 | argv += optind; |
| 15 | bar(argv[1]); |
| 16 | } |