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