Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.dg / ipa / pr77905.C
blob0f73d50addc2a6f99731468c6843491b1c11ea8c
1 // PR ipa/77905
2 // { dg-do compile }
3 // { dg-options "-O2" }
5 struct A {
6   A(int);
7 };
8 struct B : A {
9   B();
10 } A;
11 struct C : virtual A {
12   C(int);
14 A::A(int x) {
15   if (x)
16     A(0);
19 B::B() : A(1) {}
21 C::C(int) : A(1) {}