1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/* { dg-additional-options "-O1 -g" } */ /* { dg-require-effective-target indirect_jumps } */ #include "test-setjmp.h" jmp_buf buf; int test (void) { if (setjmp (buf) != 0) return 0; longjmp (buf, 1); return 1; }