Lines Matching defs:final
4 class A final { }; // expected-note {{'A' declared here}}
5 class B : A { }; // expected-error {{base 'A' is marked 'final'}}
11 template<typename T> struct A final { }; // expected-note 2 {{'A' declared here}}
12 struct B : A<int> { }; // expected-error {{base 'A' is marked 'final'}}
14 template<typename T> struct C : A<T> { }; // expected-error {{base 'A' is marked 'final'}}
22 template<> struct A<int> final { }; // expected-note {{'A' declared here}}
25 struct C : A<int> { }; // expected-error {{base 'A' is marked 'final'}}
31 struct A final { virtual void func() = 0; }; // expected-warning {{abstract class is marked 'final'}} expected-note {{unimplemented pure virtual method 'func' in 'A'}}
34 struct C final : B { }; // expected-warning {{abstract class is marked 'final'}}