1 /* { dg-do compile } */
2 /* { dg-options "-O -fcf-protection -mcet" } */
3 /* { dg-final { scan-assembler-times "endbr32" 2 { target ia32 } } } */
4 /* { dg-final { scan-assembler-times "endbr64" 2 { target { ! ia32 } } } } */
5 /* { dg-final { scan-assembler-times "call _?setjmp" 1 } } */
6 /* { dg-final { scan-assembler-times "call longjmp" 1 } } */
14 __attribute__ ((noinline
, noclone
))
23 printf ("After setjmp: j = %d\n", j
);
30 __attribute__ ((noinline
, noclone
))
37 printf ("In longjmp: j = %d\n", j
);