Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
union3.C
blob: c13b39768db87fa6a935a118d58d4720c1a927be [
file
] [
log
] [
blame
]
// PR c++/81013
struct
A
{
virtual
void
foo
()
const
;
};
union
B
:
A
// { dg-error "derived union 'B' invalid" }
{
void
foo
()
const
;
};
void
bar
(
const
B
&
b
)
{
b
.
foo
();
}