/* PR target/100402 */ /* Testcase by Hannes Domani */ /* { dg-require-effective-target indirect_jumps } */ #include #include static jmp_buf buf; static _Bool stop = false; void call_func (void(*func)(void)) { func (); } void func (void) { stop = true; longjmp (buf, 1); } int main (void) { setjmp (buf); while (!stop) call_func (func); return 0; }