blob: b082b85d18c4b014fee9a878a1f57d5a60cad160 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// RUN: clang-cc -fsyntax-only -verify %s
#include <stddef.h>
struct A {
void operator delete(void*) {
(void)this; // expected-error {{invalid use of 'this' outside of a nonstatic member function}}
}
void operator delete[](void*) {
(void)this; // expected-error {{invalid use of 'this' outside of a nonstatic member function}}
}
};
|