2018-05-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr61776.c
blob8deec9e9934e7adc86269d94b8b9dd19d99b3bba
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fprofile-generate" } */
3 /* { dg-require-profiling "-fprofile-generate" } */
5 #include <setjmp.h>
7 int cond1, cond2;
9 int goo() __attribute__((noinline));
11 int goo() {
12 if (cond1)
13 return 1;
14 else
15 return 2;
18 jmp_buf env;
19 int foo() {
20 int a;
22 setjmp(env);
23 if (cond2)
24 a = goo();
25 else
26 a = 3;
27 return a;