1 // RUN: %clang_cc1 %s -fsyntax-only -verify -Wcall-to-pure-virtual-from-ctor-dtor
3 A() { f(); } // expected-warning {{call to pure virtual member function 'f' has undefined behavior; overrides of 'f' in subclasses are not available in the constructor of 'A'}}
4 ~A() { f(); } // expected-warning {{call to pure virtual member function 'f' has undefined behavior; overrides of 'f' in subclasses are not available in the destructor of 'A'}}
6 virtual void f() = 0; // expected-note 2 {{'f' declared here}}
9 // Don't warn (or note) when calling the function on a pointer. (PR10195)
16 // Don't warn if the call is fully qualified. (PR23215)