summaryrefslogtreecommitdiffstats
path: root/libcxx/test/support/test_macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/support/test_macros.h')
-rw-r--r--libcxx/test/support/test_macros.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libcxx/test/support/test_macros.h b/libcxx/test/support/test_macros.h
index f12a76bbdfb..667a243a594 100644
--- a/libcxx/test/support/test_macros.h
+++ b/libcxx/test/support/test_macros.h
@@ -71,11 +71,13 @@
#define TEST_NOEXCEPT
#endif
-#if !TEST_HAS_FEATURE(cpp_rtti) && !defined(__cpp_rtti)
+#if !TEST_HAS_FEATURE(cpp_rtti) && !defined(__cpp_rtti) \
+ && !defined(__GXX_RTTI)
#define TEST_HAS_NO_RTTI
#endif
-#if !TEST_HAS_FEATURE(cpp_exceptions) && !defined(__cpp_exceptions)
+#if !TEST_HAS_FEATURE(cpp_exceptions) && !defined(__cpp_exceptions) \
+ && !defined(__EXCEPTIONS)
#define TEST_HAS_NO_EXCEPTIONS
#endif
OpenPOWER on IntegriCloud