Debian Codegraph @

gcc/testsuite/gcc.dg/setjmp-7.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-guess-branch-probability -w" } */
3 /* { dg-require-effective-target indirect_jumps } */
4
5 struct __jmp_buf_tag { };
6 typedef struct __jmp_buf_tag jmp_buf[1];
7 struct globals { jmp_buf listingbuf; };
8 extern struct globals *const ptr_to_globals;
9 int _setjmp (struct __jmp_buf_tag __env[1]);
10 void foo()
11 {
12 if ( _setjmp ( ((*ptr_to_globals).listingbuf )))
13 ;
14 }