summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/language.support/support.exception/except.nested/assign.pass.cpp
diff options
context:
space:
mode:
authorRoger Ferrer Ibanez <roger.ferreribanez@arm.com>2016-11-14 11:00:28 +0000
committerRoger Ferrer Ibanez <roger.ferreribanez@arm.com>2016-11-14 11:00:28 +0000
commit059680f3f0c1b755b04425562efdf7284ff9ac70 (patch)
treec5e0e551f0b153dd8241fb90fd04e456b9c0447d /libcxx/test/std/language.support/support.exception/except.nested/assign.pass.cpp
parent84c152a130ff95e52846dddd2cc6ad1c31648160 (diff)
downloadbcm5719-llvm-059680f3f0c1b755b04425562efdf7284ff9ac70.tar.gz
bcm5719-llvm-059680f3f0c1b755b04425562efdf7284ff9ac70.zip
Protect nested-exceptions tests under no-exceptions
Differential Revision: https://reviews.llvm.org/D26458 llvm-svn: 286813
Diffstat (limited to 'libcxx/test/std/language.support/support.exception/except.nested/assign.pass.cpp')
-rw-r--r--libcxx/test/std/language.support/support.exception/except.nested/assign.pass.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libcxx/test/std/language.support/support.exception/except.nested/assign.pass.cpp b/libcxx/test/std/language.support/support.exception/except.nested/assign.pass.cpp
index a5508d1436f..6338c8aaa26 100644
--- a/libcxx/test/std/language.support/support.exception/except.nested/assign.pass.cpp
+++ b/libcxx/test/std/language.support/support.exception/except.nested/assign.pass.cpp
@@ -7,7 +7,6 @@
//
//===----------------------------------------------------------------------===//
-// XFAIL: libcpp-no-exceptions
// <exception>
// class nested_exception;
@@ -17,6 +16,8 @@
#include <exception>
#include <cassert>
+#include "test_macros.h"
+
class A
{
int data_;
@@ -34,6 +35,7 @@ int main()
e = e0;
assert(e.nested_ptr() == nullptr);
}
+#ifndef TEST_HAS_NO_EXCEPTIONS
{
try
{
@@ -57,4 +59,5 @@ int main()
}
}
}
+#endif
}
OpenPOWER on IntegriCloud