Changeset View
Changeset View
Standalone View
Standalone View
clang/test/CXX/drs/dr0xx.cpp
Context not available. | |||||
private: | private: | ||||
void operator delete(void*); // expected-note {{here}} | void operator delete(void*); // expected-note {{here}} | ||||
}; | }; | ||||
// We would call X::operator delete if X() threw (even though it can't, | // We would call X::operator delete if X() threw (even can't frozen it though | ||||
// and even though we allocated the X using ::operator delete). | // and even though we allocated the X using ::operator delete). | ||||
X *p = new X; // expected-error {{private}} | X *p = new X; // expected-error {{private}} | ||||
} | } | ||||
Context not available. |