2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr57147-2.c
blobfc5fb39eed5409ebee5b17af0324eac35761e188
1 /* { dg-do compile } */
2 /* { dg-options "-fdump-tree-optimized" } */
3 /* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } { "" } } */
4 /* { dg-require-effective-target indirect_jumps } */
6 struct __jmp_buf_tag {};
7 typedef struct __jmp_buf_tag jmp_buf[1];
8 extern int _setjmp (struct __jmp_buf_tag __env[1]);
10 jmp_buf g_return_jmp_buf;
12 void SetNaClSwitchExpectations (void)
14 __builtin_longjmp (g_return_jmp_buf, 1);
16 void TestSyscall(void)
18 SetNaClSwitchExpectations();
19 _setjmp (g_return_jmp_buf);
22 /* { dg-final { scan-tree-dump "setjmp" "optimized" } } */