summaryrefslogtreecommitdiff
path: root/test/CXX/special/class.free/p1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CXX/special/class.free/p1.cpp')
-rw-r--r--test/CXX/special/class.free/p1.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CXX/special/class.free/p1.cpp b/test/CXX/special/class.free/p1.cpp
index e4fe127f9f578..5c0240b5dadc4 100644
--- a/test/CXX/special/class.free/p1.cpp
+++ b/test/CXX/special/class.free/p1.cpp
@@ -3,9 +3,9 @@
struct A {
void *operator new(size_t) {
- return this; // expected-error {{invalid use of 'this' outside of a nonstatic member function}}
+ return this; // expected-error {{invalid use of 'this' outside of a non-static member function}}
}
void *operator new[](size_t) {
- return this; // expected-error {{invalid use of 'this' outside of a nonstatic member function}}
+ return this; // expected-error {{invalid use of 'this' outside of a non-static member function}}
}
};