Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/setjmp-6.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
/* PR69569 */ /* { dg-do compile } */ /* { dg-options "-O3" } */ /* { dg-require-effective-target indirect_jumps } */ #include <setjmp.h> jmp_buf buf; struct str { int Count; }; int fun2(struct str *p1) { int i = 1; while (1) { setjmp(buf); break; } for (; i;) { i = 0; for (; i < (p1 ? p1->Count : 1); i++) fun2(p1); } return 1; }