1 // PR tree-optimization/32353
3 // { dg-options "-O2" }
5 extern "C" void abort ();
14 foo (const A &x, const A &y)
17 r = x.f == -111 ? y : (y.f == -111 || x.f > y.f) ? x : y;
19 r = r.f == -111 ? s : (r.f > s.f) ? r : s;
26 if (foo (A (0), A (1)).f != 1)
28 if (foo (A (1), A (9)).f != 9)
30 if (foo (A (9), A (1)).f != 9)
32 if (foo (A (-4), A (-5)).f != 0)
34 if (foo (A (-111), A (-111)).f != 0)
36 if (foo (A (2), A (-111)).f != 2)
38 if (foo (A (-111), A (6)).f != 6)
40 if (foo (A (-111), A (-4)).f != 0)