[libcxx] r269669 - Remove C++11 feature macros in tests. Use TEST_STD_VER instead.

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Mon May 16 10:05:15 PDT 2016


Author: ericwf
Date: Mon May 16 12:05:14 2016
New Revision: 269669

URL: http://llvm.org/viewvc/llvm-project?rev=269669&view=rev
Log:
Remove C++11 feature macros in tests. Use TEST_STD_VER instead.

Modified:
    libcxx/trunk/test/libcxx/utilities/meta/is_referenceable.pass.cpp
    libcxx/trunk/test/support/test_macros.h

Modified: libcxx/trunk/test/libcxx/utilities/meta/is_referenceable.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/utilities/meta/is_referenceable.pass.cpp?rev=269669&r1=269668&r2=269669&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/utilities/meta/is_referenceable.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/utilities/meta/is_referenceable.pass.cpp Mon May 16 12:05:14 2016
@@ -34,7 +34,7 @@ static_assert(( std::__is_referenceable<
 static_assert(( std::__is_referenceable<const Foo>::value), "");
 static_assert(( std::__is_referenceable<Foo &>::value), "");
 static_assert(( std::__is_referenceable<const Foo &>::value), "");
-#ifdef TEST_HAS_RVALUE_REFERENCES
+#if TEST_STD_VER >= 11
 static_assert(( std::__is_referenceable<Foo &&>::value), "");
 static_assert(( std::__is_referenceable<const Foo &&>::value), "");
 #endif

Modified: libcxx/trunk/test/support/test_macros.h
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/support/test_macros.h?rev=269669&r1=269668&r2=269669&view=diff
==============================================================================
--- libcxx/trunk/test/support/test_macros.h (original)
+++ libcxx/trunk/test/support/test_macros.h Mon May 16 12:05:14 2016
@@ -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




More information about the cfe-commits mailing list