summaryrefslogtreecommitdiffstats
path: root/libcxx/test/support
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-06-22 05:03:10 +0000
committerEric Fiselier <eric@efcs.ca>2016-06-22 05:03:10 +0000
commiteb067d4ebda813c47cd85c3953327330f0fb5d72 (patch)
tree2af0a04bb16565a99042a22ee12961a01d4ce2ac /libcxx/test/support
parentda5b8495e2e935e91a425728073c2a77f386e100 (diff)
downloadbcm5719-llvm-eb067d4ebda813c47cd85c3953327330f0fb5d72.tar.gz
bcm5719-llvm-eb067d4ebda813c47cd85c3953327330f0fb5d72.zip
Fix exception/rtti detection in tests.
So the macros TEST_HAS_NO_EXCEPTIONS and TEST_HAS_NO_RTTI were always getting defined because I spelt __cpp_exceptions and __cpp_rtti as __cxx_exceptions and __cxx_rtti. Tests incoming after this patch. llvm-svn: 273381
Diffstat (limited to 'libcxx/test/support')
-rw-r--r--libcxx/test/support/test_macros.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/support/test_macros.h b/libcxx/test/support/test_macros.h
index 597c85f2f2c..f12a76bbdfb 100644
--- a/libcxx/test/support/test_macros.h
+++ b/libcxx/test/support/test_macros.h
@@ -71,11 +71,11 @@
#define TEST_NOEXCEPT
#endif
-#if !TEST_HAS_FEATURE(cxx_rtti) && !defined(__cxx_rtti)
+#if !TEST_HAS_FEATURE(cpp_rtti) && !defined(__cpp_rtti)
#define TEST_HAS_NO_RTTI
#endif
-#if !TEST_HAS_FEATURE(cxx_exceptions) && !defined(__cxx_exceptions)
+#if !TEST_HAS_FEATURE(cpp_exceptions) && !defined(__cpp_exceptions)
#define TEST_HAS_NO_EXCEPTIONS
#endif
OpenPOWER on IntegriCloud