[libcxx] r273381 - Fix exception/rtti detection in tests.
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 21 22:03:10 PDT 2016
Author: ericwf
Date: Wed Jun 22 00:03:10 2016
New Revision: 273381
URL: http://llvm.org/viewvc/llvm-project?rev=273381&view=rev
Log:
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.
Modified:
libcxx/trunk/test/support/test_macros.h
Modified: libcxx/trunk/test/support/test_macros.h
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/support/test_macros.h?rev=273381&r1=273380&r2=273381&view=diff
==============================================================================
--- libcxx/trunk/test/support/test_macros.h (original)
+++ libcxx/trunk/test/support/test_macros.h Wed Jun 22 00:03:10 2016
@@ -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
More information about the cfe-commits
mailing list