Debian Codegraph @

gcc/testsuite/g++.dg/parse/ctor5.C

raw
1 // PR c++/27309
2 // { dg-additional-options "-Wno-return-type" }
3
4 struct A
5 {
6 int i; // { dg-message "previous" }
7 A() i() {} // { dg-error "declaration" }
8 };
9
10 struct B
11 {
12 A a;
13 };
14
15 B b;