Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / setjmp-5.c
blob584762915deeaf7b81a6468b54c72cc866a630a0
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Wall" } */
3 /* { dg-require-effective-target indirect_jumps } */
5 #include <setjmp.h>
7 void bar (int);
9 jmp_buf buf;
10 int v;
12 void
13 foo (void)
15 int i;
16 bar (0);
17 bar (1);
18 i = 5;
19 int j = setjmp (buf);
20 if (j == 0)
21 bar (2);
22 v = i; /* { dg-bogus "may be used uninitialized in this function" } */