Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / setjmp-6.c
blobd821d230ce0af0f0d128a2cd992218ec881e5dd6
1 /* PR69569 */
2 /* { dg-do compile } */
3 /* { dg-options "-O3" } */
4 /* { dg-require-effective-target indirect_jumps } */
6 #include <setjmp.h>
8 jmp_buf buf;
10 struct str {
11 int Count;
13 int fun2(struct str *p1)
15 int i = 1;
16 while (1) {
17 setjmp(buf);
18 break;
20 for (; i;) {
21 i = 0;
22 for (; i < (p1 ? p1->Count : 1); i++)
23 fun2(p1);
25 return 1;