Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr45875.C
blob: f1347f543262210f7c76898ba69b0b4cc1e6b005 [
file
] [
log
] [
blame
]
// { dg-do compile }
struct
c1
{};
struct
c10
:
c1
{
virtual
void
foo
();
};
struct
c11
:
c10
,
c1
// // { dg-warning "" }
{
virtual
void
f6
();
};
struct
c28
:
virtual
c11
{
void
f6
();
};
void
check_c28
()
{
c28 obj
;
c11
*
ptr
=
&
obj
;
ptr
->
f6
();
}