1 /* { dg-do compile } */
2 /* { dg-options "-Ofast" } */
3 /* { dg-require-effective-target indirect_jumps } */
4
5 #include <setjmp.h>
6 struct longjmp_buf {
7 jmp_buf buf;
8 };
9 void g ();
10 void f ()
11 {
12 int i, n;
13 long *a;
14 long *args;
15 struct longjmp_buf b;
16 setjmp (b.buf);
17 for (;;)
18 {
19 for (i = 0; i < n; i++)
20 a[i] = args[i];
21 g ();
22 }
23 }