Debian Codegraph @

gcc/testsuite/g++.dg/opt/pr100541-1.C

raw
1 // PR debug/100541
2 // { dg-do compile }
3 // { dg-options "-O3 -fno-expensive-optimizations -fno-tree-dce -fno-tree-dominator-opts -fcompare-debug" }
4
5 int a, b, i, x, y;
6
7 int
8 foo ()
9 {
10 int rcmd = 0;
11 switch (x) {
12 case 0:
13 if (i)
14 rcmd = 6;
15 if (y % 3)
16 int &m1 = rcmd = rcmd | 5;
17 break;
18 case 1:
19 rcmd = b;
20 }
21 if (rcmd != 7)
22 return rcmd;
23 return a;
24 }