Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CXX / special / class.free / p6.cpp
blobfc4b2ae1acfdcae3429adee2e980c1b7ca094389
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 #include <stddef.h>
4 struct A {
5 void operator delete(void*) {
6 (void)this; // expected-error {{invalid use of 'this' outside of a non-static member function}}
8 void operator delete[](void*) {
9 (void)this; // expected-error {{invalid use of 'this' outside of a non-static member function}}