1 /* PR tree-optimization/70152 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O2" } */ 4 5 int a; 6 int foo (void); 7 int setjmp (char *); 8 char buf[64]; 9 10 static int bar(int x)11bar (int x) 12 { 13 x = 0; 14 setjmp (buf); 15 for (;;) 16 { 17 switch (x) 18 case 5: 19 x = foo (); 20 } 21 } 22 23 void baz(void)24baz (void) 25 { 26 bar (a); 27 } 28