1/* PR rtl-optimization/53160 */ 2 3extern void abort (void); 4 5int a, c = 1, d, e, g; 6volatile int b; 7volatile char f; 8long h; 9short i; 10 11void 12foo (void) 13{ 14 for (e = 0; e; ++e) 15 ; 16} 17 18int 19main () 20{ 21 if (g) 22 (void) b; 23 foo (); 24 for (d = 0; d >= 0; d--) 25 { 26 short j = f; 27 int k = 0; 28 i = j ? j : j << k; 29 } 30 h = c == 0 ? 0 : i; 31 a = h; 32 if (a != 0) 33 abort (); 34 return 0; 35} 36