1 // { dg-options "-w -ansi -pedantic" }
3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 23 Oct 2003 <nathan@codesourcery.com>
9 ~One (); // { dg-error "cannot have a destructor" "" }
15 class Three : One {}; // { dg-error "cannot have an implicit" "" }
19 class Five : Two, Four {}; // { dg-error "cannot have multiple bases" "" }
21 class Six : virtual Two {}; // { dg-error "cannot have virtual base" "" }