libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / setjmp-7.c
blob579542380ba1c0564ba00c4958659237327eaa53
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-guess-branch-probability -w" } */
3 /* { dg-require-effective-target indirect_jumps } */
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()
12 if ( _setjmp ( ((*ptr_to_globals).listingbuf )))