1/* PR tree-optimization/49039 */ 2extern void abort (void); 3int cnt; 4 5__attribute__((noinline, noclone)) void 6foo (unsigned int x, unsigned int y) 7{ 8 unsigned int minv, maxv; 9 if (x == 1 || y == -2U) 10 return; 11 minv = x < y ? x : y; 12 maxv = x > y ? x : y; 13 if (minv == 1) 14 ++cnt; 15 if (maxv == -2U) 16 ++cnt; 17} 18 19int 20main () 21{ 22 foo (-2U, 1); 23 if (cnt != 2) 24 abort (); 25 return 0; 26} 27