Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr61776.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O2 -fprofile-generate" } */ /* { dg-require-profiling "-fprofile-generate" } */ #include <setjmp.h> int cond1, cond2; int goo() __attribute__((noinline)); int goo() { if (cond1) return 1; else return 2; } jmp_buf env; int foo() { int a; setjmp(env); if (cond2) a = goo(); else a = 3; return a; }