diff options
Diffstat (limited to 'clang/test/CXX/except/except.spec/p3.cpp')
-rw-r--r-- | clang/test/CXX/except/except.spec/p3.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CXX/except/except.spec/p3.cpp b/clang/test/CXX/except/except.spec/p3.cpp index 10e027b719a..09b1a4e102f 100644 --- a/clang/test/CXX/except/except.spec/p3.cpp +++ b/clang/test/CXX/except/except.spec/p3.cpp @@ -97,9 +97,9 @@ extern void (*r21)() noexcept(true); // expected-error {{does not match}} // As a very special workaround, we allow operator new to match no spec // with a throw(bad_alloc) spec, because C++0x makes an incompatible change // here. -namespace std { class bad_alloc {}; } +extern "C++" { namespace std { class bad_alloc {}; } } void* operator new(unsigned long) throw(std::bad_alloc); void* operator new(unsigned long); -void* operator new[](unsigned long) throw(std::bad_alloc); void* operator new[](unsigned long); +void* operator new[](unsigned long) throw(std::bad_alloc); |