Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr61776.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-O2 -fprofile-generate" } */ | |
3 /* { dg-require-profiling "-fprofile-generate" } */ | |
4 | |
5 #include <setjmp.h> | |
6 | |
7 int cond1, cond2; | |
8 | |
9 int goo() __attribute__((noinline)); | |
10 | |
11 int goo() { | |
12 if (cond1) | |
13 return 1; | |
14 else | |
15 return 2; | |
16 } | |
17 | |
18 jmp_buf env; | |
19 int foo() { | |
20 int a; | |
21 | |
22 setjmp(env); | |
23 if (cond2) | |
24 a = goo(); | |
25 else | |
26 a = 3; | |
27 return a; | |
28 } |