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() { }