[libcxx] [test] Use TEST_COMPILER_C1XX.

Also TEST_COMPILER_CLANG in one place. (More could be changed.)

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@329977 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Stephan T. Lavavej
2018-04-12 23:56:17 +00:00
parent 97fc529b73
commit bf3a3685cf
4 changed files with 13 additions and 9 deletions

View File

@@ -45,10 +45,10 @@ test1()
assert((LCE::min() == (c == 0u ? 1u: 0u)));
#endif
#ifdef _MSC_VER
#ifdef TEST_COMPILER_C1XX
#pragma warning(push)
#pragma warning(disable: 4310) // cast truncates constant value
#endif // _MSC_VER
#endif // TEST_COMPILER_C1XX
#if TEST_STD_VER >= 11
static_assert((LCE::max() == result_type(m - 1u)), "");
@@ -56,9 +56,9 @@ test1()
assert((LCE::max() == result_type(m - 1u)));
#endif
#ifdef _MSC_VER
#ifdef TEST_COMPILER_C1XX
#pragma warning(pop)
#endif // _MSC_VER
#endif // TEST_COMPILER_C1XX
static_assert((LCE::default_seed == 1), "");
where(LCE::multiplier);