From 3cc263dda1223f031756b4b5a6f3b82c784cf52e Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Mon, 16 May 2016 17:05:14 +0000 Subject: [PATCH] Remove C++11 feature macros in tests. Use TEST_STD_VER instead. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@269669 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/libcxx/utilities/meta/is_referenceable.pass.cpp | 2 +- test/support/test_macros.h | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/test/libcxx/utilities/meta/is_referenceable.pass.cpp b/test/libcxx/utilities/meta/is_referenceable.pass.cpp index dd31ab5a3..1746de3ba 100644 --- a/test/libcxx/utilities/meta/is_referenceable.pass.cpp +++ b/test/libcxx/utilities/meta/is_referenceable.pass.cpp @@ -34,7 +34,7 @@ static_assert(( std::__is_referenceable::value), ""); static_assert(( std::__is_referenceable::value), ""); static_assert(( std::__is_referenceable::value), ""); static_assert(( std::__is_referenceable::value), ""); -#ifdef TEST_HAS_RVALUE_REFERENCES +#if TEST_STD_VER >= 11 static_assert(( std::__is_referenceable::value), ""); static_assert(( std::__is_referenceable::value), ""); #endif diff --git a/test/support/test_macros.h b/test/support/test_macros.h index 11b5a5f42..00ab7c423 100644 --- a/test/support/test_macros.h +++ b/test/support/test_macros.h @@ -45,12 +45,6 @@ # define TEST_STD_VER 99 // greater than current standard #endif -/* Features that were introduced in C++11 */ -#if TEST_STD_VER >= 11 -#define TEST_HAS_RVALUE_REFERENCES -#define TEST_HAS_VARIADIC_TEMPLATES -#endif - /* Features that were introduced in C++14 */ #if TEST_STD_VER >= 14 #define TEST_HAS_EXTENDED_CONSTEXPR