return true;
}
- // We don't need an operator delete if we're running under
- // -fno-exceptions.
- if (!getLangOptions().Exceptions) {
- OperatorDelete = 0;
- return false;
- }
-
// FindAllocationOverload can change the passed in arguments, so we need to
// copy them back.
if (NumPlaceArgs > 0)
-// RUN: %clang_cc1 -fsyntax-only -verify -fexceptions %s
+// RUN: %clang_cc1 -fsyntax-only -verify %s
typedef __SIZE_TYPE__ size_t;
// Operator delete template for placement new with global lookup
-// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x -fexceptions %s
+// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s
typedef __SIZE_TYPE__ size_t;
struct S {
-// RUN: %clang_cc1 -fsyntax-only -verify -fexceptions %s
+// RUN: %clang_cc1 -fsyntax-only -verify %s
typedef __SIZE_TYPE__ size_t;
// Overloaded operator delete with two arguments
+++ /dev/null
-// RUN: %clang_cc1 -fsyntax-only -verify %s
-
-// Various tests for -fno-exceptions
-
-typedef __SIZE_TYPE__ size_t;
-
-namespace test0 {
- // rdar://problem/7878149
- class Foo {
- public:
- void* operator new(size_t x);
- private:
- void operator delete(void *x);
- };
-
- void test() {
- // Under -fexceptions, this does access control for the associated
- // 'operator delete'.
- (void) new Foo();
- }
-}