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