annotate gcc/testsuite/g++.dg/pr80707.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 // PR middle-end/80707 ICE: extra outgoing edge causes verify_flow_info error.
kono
parents:
diff changeset
2 // { dg-do compile }
kono
parents:
diff changeset
3 // { dg-options "-O3" } */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 struct A {
kono
parents:
diff changeset
6 int m_fn1(int &) const;
kono
parents:
diff changeset
7 };
kono
parents:
diff changeset
8 int A::m_fn1(int &p1) const {
kono
parents:
diff changeset
9 int a[6];
kono
parents:
diff changeset
10 int b = 0;
kono
parents:
diff changeset
11 for (int i;; i++) {
kono
parents:
diff changeset
12 if (a[i])
kono
parents:
diff changeset
13 break;
kono
parents:
diff changeset
14 b++;
kono
parents:
diff changeset
15 }
kono
parents:
diff changeset
16 while (b) {
kono
parents:
diff changeset
17 int c;
kono
parents:
diff changeset
18 switch (b) {
kono
parents:
diff changeset
19 case 1:
kono
parents:
diff changeset
20 c = 0;
kono
parents:
diff changeset
21 break;
kono
parents:
diff changeset
22 case 5:
kono
parents:
diff changeset
23 c = a[0];
kono
parents:
diff changeset
24 }
kono
parents:
diff changeset
25 if (c)
kono
parents:
diff changeset
26 p1 = 0;
kono
parents:
diff changeset
27 b--;
kono
parents:
diff changeset
28 }
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
29
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
30 return 0;
111
kono
parents:
diff changeset
31 }