diff options
Diffstat (limited to 'test/CXX/special/class.free/p6.cpp')
-rw-r--r-- | test/CXX/special/class.free/p6.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CXX/special/class.free/p6.cpp b/test/CXX/special/class.free/p6.cpp index 8334817ca2b5..b082b85d18c4 100644 --- a/test/CXX/special/class.free/p6.cpp +++ b/test/CXX/special/class.free/p6.cpp @@ -2,7 +2,7 @@ #include <stddef.h> struct A { - void operator delete(size_t) { + void operator delete(void*) { (void)this; // expected-error {{invalid use of 'this' outside of a nonstatic member function}} } void operator delete[](void*) { |