2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / base1.C
blob3c9ac264e1d08d777adbeca1d90a12bd159881cb
1 // { dg-do assemble  }
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 25 Nov 2000 <nathan@codesourcery.com>
6 // We lost information about which base wasn't an aggregate type, plus we
7 // allowed cv qualifed bases via typedefs.
9 typedef int I;
10 typedef int cI;
12 struct A {};
14 typedef const A cA;
15 typedef A pA;
17 struct B : I {};  // { dg-error "" } not an aggregate
18 struct C : cI {}; // { dg-error "" } not an aggregate
19 struct D : cA {}; // { dg-error "" } cv qualified
20 struct E : pA {};