blob: c1d2059542ba3da27ca8ffdebaa5b952e41da735 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O -fharden-compares -Wno-c++11-extensions" } */
enum E:bool
{ E0, E1 };
int x;
E
baz (E rtt)
{
return rtt == E0 ? E1 : E0;
}
bool bar ();
void
foo (E)
{
E a = x ? E1 : E0;
if (bar ())
if (bar ())
{
E b = baz (a);
foo (b);
}
}