mirror of
https://github.com/darlinghq/darling-libcxx.git
synced 2025-03-05 02:08:09 +00:00
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:
parent
5d98497d0b
commit
3cc263dda1
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user