Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / torture / pr108166.C
blob037fc275e3dc096869a61ac437bc391cef3cf5f8
1 // PR tree-optimization/108166
2 // { dg-do run }
4 bool a, b;
5 int d, c;
7 const int &
8 foo (const int &f, const int &g)
10   return !f ? f : g;
13 __attribute__((noipa)) void
14 bar (int)
18 int
19 main ()
21   c = foo (b, 0) > ((b ? d : b) ?: 8);
22   a = b ? d : b;
23   bar (a);
24   if (a != 0)
25     __builtin_abort ();