diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-05-16 17:05:14 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-05-16 17:05:14 +0000 |
commit | 46a256a3ebd0f03fa830ac5f26f8df3616494cf7 (patch) | |
tree | 66eeed31388db45f4e9ac1e6084bf2c84a3751a1 | |
parent | 37ec5f914e2b677f534874eeba1e1b0cb53e4f70 (diff) | |
download | bcm5719-llvm-46a256a3ebd0f03fa830ac5f26f8df3616494cf7.tar.gz bcm5719-llvm-46a256a3ebd0f03fa830ac5f26f8df3616494cf7.zip |
Remove C++11 feature macros in tests. Use TEST_STD_VER instead.
llvm-svn: 269669
-rw-r--r-- | libcxx/test/libcxx/utilities/meta/is_referenceable.pass.cpp | 2 | ||||
-rw-r--r-- | libcxx/test/support/test_macros.h | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/libcxx/test/libcxx/utilities/meta/is_referenceable.pass.cpp b/libcxx/test/libcxx/utilities/meta/is_referenceable.pass.cpp index dd31ab5a33d..1746de3baaa 100644 --- a/libcxx/test/libcxx/utilities/meta/is_referenceable.pass.cpp +++ b/libcxx/test/libcxx/utilities/meta/is_referenceable.pass.cpp @@ -34,7 +34,7 @@ static_assert(( std::__is_referenceable<Foo>::value), ""); 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 diff --git a/libcxx/test/support/test_macros.h b/libcxx/test/support/test_macros.h index 11b5a5f42bd..00ab7c423fa 100644 --- a/libcxx/test/support/test_macros.h +++ b/libcxx/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 |