Debian Codegraph @

gcc/testsuite/g++.dg/opt/pr100148.C

raw
1 // PR rtl-optimization/100148
2 // { dg-do compile }
3 // { dg-options "-O2 -fno-dce -fno-tree-dce -fno-tree-dominator-opts -fno-tree-sink -fcompare-debug" }
4
5 int i;
6 enum E { } e, ee;
7
8 bool
9 baz (int)
10 {
11 return ee;
12 }
13
14 bool bar ();
15 bool a, b;
16
17 void
18 foo ()
19 {
20 switch (ee)
21 {
22 case 0:
23 e = E (a ? : i);
24 case 1:
25 !(b || baz (0) && bar ());
26 }
27 }