blob: e681a02cc9166f5073a0f9dbc74cb94c799229d6 [file] [log] [blame]
Davide Italianoccb37382015-07-14 23:36:10 +00001// RUN: %clang_cc1 %s -fapple-kext -fsyntax-only -verify
2
3struct A {
4 virtual void f() = 0; // expected-note {{'f' declared here}}
5 A() {
6 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'}} // expected-note {{qualified call to 'A'::'f' is treated as a virtual call to 'f' due to -fapple-kext}}
7 }
8};