diff options
Diffstat (limited to 'clang/test/CXX/special/class.free/p6.cpp')
-rw-r--r-- | clang/test/CXX/special/class.free/p6.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CXX/special/class.free/p6.cpp b/clang/test/CXX/special/class.free/p6.cpp index 555d4e9cfa9..fc4b2ae1acf 100644 --- a/clang/test/CXX/special/class.free/p6.cpp +++ b/clang/test/CXX/special/class.free/p6.cpp @@ -3,9 +3,9 @@ struct A { void operator delete(void*) { - (void)this; // expected-error {{invalid use of 'this' outside of a nonstatic member function}} + (void)this; // expected-error {{invalid use of 'this' outside of a non-static member function}} } void operator delete[](void*) { - (void)this; // expected-error {{invalid use of 'this' outside of a nonstatic member function}} + (void)this; // expected-error {{invalid use of 'this' outside of a non-static member function}} } }; |