From eb067d4ebda813c47cd85c3953327330f0fb5d72 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Wed, 22 Jun 2016 05:03:10 +0000 Subject: 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 --- libcxx/test/support/test_macros.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcxx/test/support') 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 -- cgit v1.2.3