Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.dg / ipa / pr66896.C
blob841515c846fac297ab579ba377501def41b10a8c
1 // PR ipa/66896
2 // { dg-do compile }
4 void f2 (void *);
5 void f3 ();
7 struct A
9   int *a;
10   A ();
11   ~A () { a3 (); }
12   void a1 (int * p) { if (!p) f3 (); f2 (p); }
13   void a3 () { if (*a) a1 (a); }
16 struct B : A {~B () { a3 ();}};
18 struct F {};
20 struct G : F {B g;};
22 void foo () {G g;}