2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / torture / pr58585.C
blob69fcf04ddc1b4bdde89ccec6fe86821f605c8c1f
1 // { dg-do compile }
2 // { dg-options "-fpic" { target fpic } }
3 struct A
5   virtual void foo() {}
6   void bar();
7 };
8 void A::bar() { foo(); }
10 struct B : virtual A
12   virtual void foo() {}
13   char c;
16 struct C : virtual B
18   C();
20 C::C() { bar(); }