Fix bad macros in tests

llvm-svn: 254284
This commit is contained in:
Marshall Clow 2015-11-30 05:03:35 +00:00
parent e12a536d76
commit 803a8bb105
3 changed files with 5 additions and 5 deletions

View File

@ -22,7 +22,7 @@ void test_is_base_of()
static_assert((std::is_base_of<const T, U>::value), "");
static_assert((std::is_base_of<T, const U>::value), "");
static_assert((std::is_base_of<const T, const U>::value), "");
#if TEST_STD_VERS > 14
#if TEST_STD_VER > 14
static_assert((std::is_base_of_v<T, U>), "");
static_assert((std::is_base_of_v<const T, U>), "");
static_assert((std::is_base_of_v<T, const U>), "");

View File

@ -22,7 +22,7 @@ void test_is_convertible()
static_assert((std::is_convertible<const T, U>::value), "");
static_assert((std::is_convertible<T, const U>::value), "");
static_assert((std::is_convertible<const T, const U>::value), "");
#if TEST_STD_VERS > 14
#if TEST_STD_VER > 14
static_assert((std::is_convertible_v<T, U>), "");
static_assert((std::is_convertible_v<const T, U>), "");
static_assert((std::is_convertible_v<T, const U>), "");
@ -37,7 +37,7 @@ void test_is_not_convertible()
static_assert((!std::is_convertible<const T, U>::value), "");
static_assert((!std::is_convertible<T, const U>::value), "");
static_assert((!std::is_convertible<const T, const U>::value), "");
#if TEST_STD_VERS > 14
#if TEST_STD_VER > 14
static_assert((!std::is_convertible_v<T, U>), "");
static_assert((!std::is_convertible_v<const T, U>), "");
static_assert((!std::is_convertible_v<T, const U>), "");

View File

@ -22,7 +22,7 @@ void test_is_same()
static_assert((!std::is_same<const T, U>::value), "");
static_assert((!std::is_same<T, const U>::value), "");
static_assert(( std::is_same<const T, const U>::value), "");
#if TEST_STD_VERS > 14
#if TEST_STD_VER > 14
static_assert(( std::is_same_v<T, U>), "");
static_assert((!std::is_same_v<const T, U>), "");
static_assert((!std::is_same_v<T, const U>), "");
@ -37,7 +37,7 @@ void test_is_same_ref()
static_assert((std::is_same<const T, U>::value), "");
static_assert((std::is_same<T, const U>::value), "");
static_assert((std::is_same<const T, const U>::value), "");
#if TEST_STD_VERS > 14
#if TEST_STD_VER > 14
static_assert((std::is_same_v<T, U>), "");
static_assert((std::is_same_v<const T, U>), "");
static_assert((std::is_same_v<T, const U>), "");