diff options
Diffstat (limited to 'test/SemaCXX/new-delete.cpp')
| -rw-r--r-- | test/SemaCXX/new-delete.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/SemaCXX/new-delete.cpp b/test/SemaCXX/new-delete.cpp index 7facd10ca5fc8..cb43458d45786 100644 --- a/test/SemaCXX/new-delete.cpp +++ b/test/SemaCXX/new-delete.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -verify %s -triple=i686-pc-linux-gnu +// RUN: %clang_cc1 -fsyntax-only -verify %s -triple=i686-pc-linux-gnu -Wno-new-returns-null #include <stddef.h> @@ -517,3 +517,10 @@ class DeletingPlaceholder { return 0; } }; + +namespace PR18544 { + inline void *operator new(size_t); // expected-error {{'operator new' cannot be declared inside a namespace}} +} + +// PR19968 +inline void* operator new(); // expected-error {{'operator new' must have at least one parameter}} |
