1 /* PR tree-optimization/47427 */ 2 3 char *g, *h; 4 5 int bar(unsigned char x,const int y)6bar (unsigned char x, const int y) 7 { 8 lab: 9 for (; h; g = h) 10 for (g = 0; h; h++) 11 { 12 int a = 1; 13 if (h) 14 { 15 if (a) 16 goto lab; 17 return y; 18 } 19 } 20 return x; 21 } 22 23 void foo(void)24foo (void) 25 { 26 if (bar (0, 1)) 27 bar (1, 0); 28 } 29