Sign in
llvm
/
llvm-archive
/
47f46514d69ad808308539dc6c69b907868fcf8a
/
.
/
llvm-gcc-4.2
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
virtual1.C
blob: 08bcbb143cfb0a0557f4286587d1ec7f40599bcd [
file
] [
log
] [
blame
]
//PR c++/27952
struct
A
{
virtual
~
A
()
{}
};
struct
B
:
A
,
virtual
A
{};
// { dg-error "duplicate base|forward declaration" }
struct
C
:
A
,
B
{};
// { dg-error "duplicate base|invalid use" }
C c
;
// { dg-error "aggregate" }