summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/warn/pr21983.C
blob: 0108169ea31833cc48a3bfe2762c6af1eccab86e (plain)
1
2
3
4
5
6
7
// PR c++/21983
// { dg-do compile }

struct B { virtual void foo () = 0; };
struct D1 : public virtual B { virtual void foo () {} };
struct D2 : public virtual B { virtual void foo () {} };
struct D : public D1, public D2 { };	// { dg-error "no unique final overrider" }