1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-inaccessible-base %s
3 virtual void f() = 0; // expected-note 2{{overridden virtual function}}
6 struct Aprime
: virtual A
{
11 virtual void f(); // expected-note 3{{final overrider of 'A::f'}}
14 struct C
: virtual A
{
15 virtual void f(); // expected-note{{final overrider of 'A::f'}}
18 struct D
: B
, C
{ }; // expected-error{{virtual function 'A::f' has more than one final overrider in 'D'}}
22 struct E
: B
, B2
{ }; //expected-error{{virtual function 'A::f' has more than one final overrider in 'E'}}
25 virtual void f(); // okay
28 struct G
: F
{ }; // okay
30 struct H
: G
, A
{ }; // okay
32 namespace MultipleSubobjects
{
33 struct A
{ virtual void f(); };
34 struct B
: A
{ virtual void f(); };
35 struct C
: A
{ virtual void f(); };
36 struct D
: B
, C
{ }; // okay