Sign in
gnu
/
gcc
/
1ba7adabf29eb671e418692fad076ea6edd08e3d
/
.
/
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
();
}