PR c/64856
[official-gcc.git] / gcc / testsuite / gcc.dg / pr61776.c
blob8768c546bdaa7b13ad3875230ca58b96ffd82524
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fprofile-generate" } */
4 #include <setjmp.h>
6 int cond1, cond2;
8 int goo() __attribute__((noinline));
10 int goo() {
11 if (cond1)
12 return 1;
13 else
14 return 2;
17 jmp_buf env;
18 int foo() {
19 int a;
21 setjmp(env);
22 if (cond2)
23 a = goo();
24 else
25 a = 3;
26 return a;