Debian Codegraph @

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

raw
1 // { dg-do compile }
2 // { dg-options "-O1 -ftree-pre -fnon-call-exceptions" }
3
4 struct A
5 {
6 int i;
7 };
8
9 struct B : A
10 {
11 int i[6];
12 B (int = 0) : A ()
13 {
14 m ();
15 }
16 int m ();
17 };
18
19 struct C : B
20 {
21 };
22
23 void
24 foo ()
25 {
26 new C ();
27 }
28