1 /* PR tree-optimization/80632 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O2" } */ 4 5 extern int bar (void); 6 extern void baz (void); 7 int a; 8 9 int foo(void)10foo (void) 11 { 12 int c = 8; 13 if (bar ()) 14 { 15 baz (); 16 switch (a) 17 { 18 case 0: 19 c = 1; 20 break; 21 case 1: 22 c = 0; 23 break; 24 case 2: 25 c = 0; 26 break; 27 case 3: 28 c = 0; 29 break; 30 default: 31 c = 1; 32 } 33 } 34 return c; 35 } 36