summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/language.support/support.exception/except.nested
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/language.support/support.exception/except.nested')
-rw-r--r--libcxx/test/std/language.support/support.exception/except.nested/throw_with_nested.pass.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/libcxx/test/std/language.support/support.exception/except.nested/throw_with_nested.pass.cpp b/libcxx/test/std/language.support/support.exception/except.nested/throw_with_nested.pass.cpp
index b507eccc369..c14cb69bdea 100644
--- a/libcxx/test/std/language.support/support.exception/except.nested/throw_with_nested.pass.cpp
+++ b/libcxx/test/std/language.support/support.exception/except.nested/throw_with_nested.pass.cpp
@@ -18,6 +18,8 @@
#include <cstdlib>
#include <cassert>
+#include "test_macros.h"
+
class A
{
int data_;
@@ -37,7 +39,7 @@ public:
friend bool operator==(const B& x, const B& y) {return x.data_ == y.data_;}
};
-#if __cplusplus > 201103L
+#if TEST_STD_VER > 11
struct Final final {};
#endif
@@ -105,7 +107,7 @@ int main()
assert(i == 7);
}
}
-#if __cplusplus > 201103L
+#if TEST_STD_VER > 11
{
try
{
OpenPOWER on IntegriCloud