mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-23 18:38:30 +08:00
[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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user