summaryrefslogtreecommitdiff
path: root/test/test_guard.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_guard.pass.cpp')
-rw-r--r--test/test_guard.pass.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_guard.pass.cpp b/test/test_guard.pass.cpp
index 41ff794..9b0c2d5 100644
--- a/test/test_guard.pass.cpp
+++ b/test/test_guard.pass.cpp
@@ -41,6 +41,7 @@ namespace test1 {
// When initialization fails, ensure that we try to initialize it again next
// time.
namespace test2 {
+#ifndef LIBCXXABI_HAS_NO_EXCEPTIONS
static int run_count = 0;
int increment() {
++run_count;
@@ -58,6 +59,9 @@ namespace test2 {
helper();
assert(run_count == 2);
}
+#else
+ void test() {}
+#endif
}
// Check that we can initialize a second value while initializing a first.