blob: 3c9ac264e1d08d777adbeca1d90a12bd159881cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// { dg-do assemble }
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 25 Nov 2000 <nathan@codesourcery.com>
// We lost information about which base wasn't an aggregate type, plus we
// allowed cv qualifed bases via typedefs.
typedef int I;
typedef int cI;
struct A {};
typedef const A cA;
typedef A pA;
struct B : I {}; // { dg-error "" } not an aggregate
struct C : cI {}; // { dg-error "" } not an aggregate
struct D : cA {}; // { dg-error "" } cv qualified
struct E : pA {};
|