Debian Codegraph @

gcc/testsuite/g++.dg/pr65049.C

raw
1 // PR middle-end/65409
2 // Reported by Ignacy Gawedzki <[email protected]>
3
4 struct Foo
5 {
6 Foo() {}
7 int a;
8 int b;
9 char c;
10 };
11
12 Foo copy_foo(Foo);
13
14 struct Bar : Foo
15 {
16 Bar(Foo t) : Foo(copy_foo(t)) {}
17 };
18
19 Bar a = Foo();