summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/18_support/50594.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/testsuite/18_support/50594.cc')
-rw-r--r--libstdc++-v3/testsuite/18_support/50594.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/testsuite/18_support/50594.cc b/libstdc++-v3/testsuite/18_support/50594.cc
index 047f4a732bf..04810bdf079 100644
--- a/libstdc++-v3/testsuite/18_support/50594.cc
+++ b/libstdc++-v3/testsuite/18_support/50594.cc
@@ -26,7 +26,7 @@ bool user_new_called;
bool user_delete_called;
void* operator new(std::size_t n)
-#ifndef __GXX_EXPERIMENTAL_CXX0X__
+#if __cplusplus < 201103L
throw(std::bad_alloc)
#endif
{
@@ -41,7 +41,7 @@ void* operator new(std::size_t n)
}
void operator delete(void* p)
-#ifdef __GXX_EXPERIMENTAL_CXX0X__
+#if __cplusplus >= 201103L
noexcept
#else
throw()