1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s 2 3 struct A { 4 virtual void a(); // expected-note{{overridden virtual function is here}} 5 virtual void b() = delete; // expected-note{{overridden virtual function is here}} 6 }; 7 8 struct B: A { 9 virtual void a() = delete; // expected-error{{deleted function 'a' cannot override a non-deleted function}} 10 virtual void b(); // expected-error{{non-deleted function 'b' cannot override a deleted function}} 11 }; 12 13 struct C: A { 14 virtual void a(); 15 virtual void b() = delete; 16 }; 17