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
This commit is contained in:
@@ -34,7 +34,7 @@ static_assert(( std::__is_referenceable<Foo>::value), "");
|
|||||||
static_assert(( std::__is_referenceable<const Foo>::value), "");
|
static_assert(( std::__is_referenceable<const Foo>::value), "");
|
||||||
static_assert(( std::__is_referenceable<Foo &>::value), "");
|
static_assert(( std::__is_referenceable<Foo &>::value), "");
|
||||||
static_assert(( std::__is_referenceable<const 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<Foo &&>::value), "");
|
||||||
static_assert(( std::__is_referenceable<const Foo &&>::value), "");
|
static_assert(( std::__is_referenceable<const Foo &&>::value), "");
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -45,12 +45,6 @@
|
|||||||
# define TEST_STD_VER 99 // greater than current standard
|
# define TEST_STD_VER 99 // greater than current standard
|
||||||
#endif
|
#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 */
|
/* Features that were introduced in C++14 */
|
||||||
#if TEST_STD_VER >= 14
|
#if TEST_STD_VER >= 14
|
||||||
#define TEST_HAS_EXTENDED_CONSTEXPR
|
#define TEST_HAS_EXTENDED_CONSTEXPR
|
||||||
|
|||||||
Reference in New Issue
Block a user