Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
covariant20.C
blob: cf7e196fe1ccfcdc6ea1397d6b811d5a381d8035 [
file
] [
log
] [
blame
]
// PR c++/51812
// { dg-do link }
class
Object
{
virtual
Object
*
clone
()
const
;
};
class
DNA
:
virtual
public
Object
{
virtual
DNA
*
clone
()
const
{
return
new
DNA
(*
this
);}
};
int
main
()
{
}