]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/pr88870.c
[testsuite] Add missing dg-require-effective-target nonlocal_goto
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr88870.c
1 /* PR rtl-optimization/88870 */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target nonlocal_goto } */
4 /* { dg-options "-O1 -fexceptions -fnon-call-exceptions -ftrapv -fno-tree-dominator-opts" } */
5
6 int a, b;
7
8 void
9 foo (int *x)
10 {
11 int c = 0;
12 {
13 int d;
14 x = &c;
15 for (;;)
16 {
17 x = &d;
18 b = 0;
19 d = c + 1;
20 b = c = 1;
21 ++a;
22 }
23 }
24 }