Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr59226.C
blob: cb0ebbe35f9fa642b6f3ef87d95cbdd670f17a36 [
file
] [
log
] [
blame
]
// { dg-do compile }
struct
A
{
virtual
void
foo
()
{}
};
struct
B
{
virtual
void
foo
()
{}
};
struct
C
:
virtual
A
{};
struct
D
:
virtual
A
,
B
{
virtual
void
foo
()
{}
};
struct
E
:
C
,
D
{
virtual
void
foo
()
{}
};
void
bar
(
A
*
p
)
{
p
->
foo
();
}