Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.dg / parse / ctor5.C
blob917bfb06c347e3bbc2ec2a0f825f8f310b818055
1 // PR c++/27309
2 // { dg-additional-options "-Wno-return-type" }
4 struct A
6   int i; // { dg-message "previous" }
7   A() i() {}  // { dg-error "declaration" }
8 };
10 struct B
12   A a;
15 B b;