2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / inherit / covariant7.C
blob596c679f2484fab2654d0afeef91afef26742f23
1 // { dg-do compile }
3 // Copyright (C) 2002 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 27 Dec 2002 <nathan@codesourcery.com>
6 // We ICE'd
8 struct c0 {};
10 struct c1 : virtual c0
12   virtual c0 &f2() volatile;
15 struct c2 
17   int m;
20 struct c3 : virtual c0, virtual c1, c2
22   virtual c1 &f2() volatile;
25 struct c4 : virtual c3, virtual c0, virtual c1
27   int m;
30 struct c6 : c0, c3, c4
31 { // { dg-warning "direct base" "" }
32   virtual c1 &f2() volatile;