1 /* { dg-do compile } */ 2 /* { dg-options "-O2 -Wno-attributes" } */ 3 4 struct ucontext; 5 6 extern int bar (struct ucontext *) __attribute__((__returns_twice__)); 7 8 static int __attribute__ ((__always_inline__)) foo(struct ucontext * oucp)9foo (struct ucontext *oucp) /* { dg-error "setjmp" } */ 10 { 11 return bar (oucp); 12 } 13 14 int test(struct ucontext * oucp)15test (struct ucontext *oucp) 16 { 17 return foo (oucp); 18 } 19