Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / inherit / covariant8.C
blob33dc431065e8bc274e068d4eda7f0b80fa63eea4
1 // { dg-do compile }
3 // Copyright (C) 2002 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 31 Dec 2002 <nathan@codesourcery.com>
6 // ICE with covariant thunks.
8 struct c0 {};
10 struct c1 : virtual c0
12   virtual c0 &f2 ();
15 struct c2 
17   int m;
20 struct c3 : virtual c0, virtual c1, c2
22   virtual c1 &f2 ();
25 c1 &c3::f2 ()
27   throw 0;
30 struct c4 : virtual c3, virtual c0, virtual c1 {};
32 struct c8 : virtual c2, virtual c0 {};
34 struct c12 : virtual c4, virtual c3, virtual c8 {};