aboutsummaryrefslogtreecommitdiff
path: root/test/std/language.support/support.exception/except.nested/throw_with_nested.pass.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-07-23 20:47:26 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-07-23 20:47:26 +0000
commit51072bd6bf79ef2bc6a922079bff57c31c1effbc (patch)
tree91a2effbc9e6f80bdbbf9eb70e06c51ad0867ea0 /test/std/language.support/support.exception/except.nested/throw_with_nested.pass.cpp
parentbb5e33f003797b67974a8893f7f2930fc51b8210 (diff)
Notes
Diffstat (limited to 'test/std/language.support/support.exception/except.nested/throw_with_nested.pass.cpp')
-rw-r--r--test/std/language.support/support.exception/except.nested/throw_with_nested.pass.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/std/language.support/support.exception/except.nested/throw_with_nested.pass.cpp b/test/std/language.support/support.exception/except.nested/throw_with_nested.pass.cpp
index 98006bb1e3a0..c14cb69bdea3 100644
--- a/test/std/language.support/support.exception/except.nested/throw_with_nested.pass.cpp
+++ b/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,14 +107,14 @@ int main()
assert(i == 7);
}
}
-#if __cplusplus > 201103L
+#if TEST_STD_VER > 11
{
try
{
std::throw_with_nested(Final());
assert(false);
}
- catch (const Final &f)
+ catch (const Final &)
{
}
}