Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
other
/
final6.C
blob: 1979038f9676515c49e8dabe45415a009fbb13ed [
file
] [
log
] [
blame
]
// PR c++/90909
// { dg-do link { target c++11 } }
struct
S1
{
virtual
void
f
()
=
0
;
};
struct
S2
:
S1
{
virtual
void
f
()
{}
};
struct
S3
:
S2
{
using
S1
::
f
;
};
struct
S4
final
:
S3
{
void
g
();
};
void
S4
::
g
()
{
f
();
}
int
main
()
{
S4
().
g
();
}