2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / inherit / covariant9.C
blob3266c75a768446df5f9c2a3c5e4b52cc1a73ccbb
1 // { dg-do link }
2 // { dg-options "-w -ansi -pedantic" }
4 // Contributed by Nathan Sidwell 23 Oct 2003 <nathan@codesourcery.com>
5 // Origin: grigory@stl.sarov.ru
6 // PR c++/12698. Duplicate covariant thunks emitted.
8 struct c1 {};
10 struct c0 {
11   int i;
12   virtual c1& f10() {};
15 struct c2 : virtual c1, c0 { };
17 struct c6 : virtual c2, c0 {
18   virtual c2& f10() {};
21 struct c14 : virtual c2 { };
23 struct c19 : virtual ::c6 {
24   virtual class ::c14& f10() {};
27 int main ()
29   c19 obj;
32