Author: stl_msft Date: Fri May 5 18:51:39 2017 New Revision: 302325 URL: http://llvm.org/viewvc/llvm-project?rev=302325&view=rev Log: [libcxx] [test] Suppress MSVC's /analyze warning C6294 in a more fine-grained manner.
Fixes D32926. Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/char_ptr_ctor.pass.cpp libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/default.pass.cpp libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/string_ctor.pass.cpp libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp libcxx/trunk/test/std/utilities/template.bitset/bitset.members/count.pass.cpp libcxx/trunk/test/std/utilities/template.bitset/bitset.members/flip_all.pass.cpp libcxx/trunk/test/std/utilities/template.bitset/bitset.members/flip_one.pass.cpp libcxx/trunk/test/std/utilities/template.bitset/bitset.members/index.pass.cpp libcxx/trunk/test/std/utilities/template.bitset/bitset.members/index_const.pass.cpp libcxx/trunk/test/std/utilities/template.bitset/bitset.members/left_shift.pass.cpp libcxx/trunk/test/std/utilities/template.bitset/bitset.members/left_shift_eq.pass.cpp libcxx/trunk/test/std/utilities/template.bitset/bitset.members/not_all.pass.cpp libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_and_eq.pass.cpp libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_eq_eq.pass.cpp libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_xor_eq.pass.cpp libcxx/trunk/test/std/utilities/template.bitset/bitset.members/reset_all.pass.cpp libcxx/trunk/test/std/utilities/template.bitset/bitset.members/right_shift.pass.cpp libcxx/trunk/test/std/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp libcxx/trunk/test/std/utilities/template.bitset/bitset.members/set_all.pass.cpp libcxx/trunk/test/std/utilities/template.bitset/bitset.members/test.pass.cpp libcxx/trunk/test/std/utilities/template.bitset/bitset.members/to_string.pass.cpp libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_and.pass.cpp libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_not.pass.cpp libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_or.pass.cpp libcxx/trunk/test/support/msvc_stdlib_force_include.hpp Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/char_ptr_ctor.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/char_ptr_ctor.pass.cpp?rev=302325&r1=302324&r2=302325&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/char_ptr_ctor.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/char_ptr_ctor.pass.cpp Fri May 5 18:51:39 2017 @@ -19,6 +19,10 @@ #include "test_macros.h" +#if defined(TEST_COMPILER_C1XX) +#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. +#endif + template <std::size_t N> void test_char_pointer_ctor() { Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/default.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/default.pass.cpp?rev=302325&r1=302324&r2=302325&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/default.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/default.pass.cpp Fri May 5 18:51:39 2017 @@ -14,6 +14,10 @@ #include "test_macros.h" +#if defined(TEST_COMPILER_C1XX) +#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. +#endif + template <std::size_t N> void test_default_ctor() { Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/string_ctor.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/string_ctor.pass.cpp?rev=302325&r1=302324&r2=302325&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/string_ctor.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/string_ctor.pass.cpp Fri May 5 18:51:39 2017 @@ -16,6 +16,10 @@ #include "test_macros.h" +#if defined(TEST_COMPILER_C1XX) +#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. +#endif + template <std::size_t N> void test_string_ctor() { Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp?rev=302325&r1=302324&r2=302325&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp Fri May 5 18:51:39 2017 @@ -16,6 +16,10 @@ #include "test_macros.h" +#if defined(TEST_COMPILER_C1XX) +#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. +#endif + template <std::size_t N> void test_val_ctor() { Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/count.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/count.pass.cpp?rev=302325&r1=302324&r2=302325&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/count.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/count.pass.cpp Fri May 5 18:51:39 2017 @@ -13,8 +13,12 @@ #include <cstdlib> #include <cassert> -#if defined(__clang__) +#include "test_macros.h" + +#if defined(TEST_COMPILER_CLANG) #pragma clang diagnostic ignored "-Wtautological-compare" +#elif defined(TEST_COMPILER_C1XX) +#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. #endif template <std::size_t N> Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/flip_all.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/flip_all.pass.cpp?rev=302325&r1=302324&r2=302325&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/flip_all.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/flip_all.pass.cpp Fri May 5 18:51:39 2017 @@ -13,8 +13,12 @@ #include <cstdlib> #include <cassert> -#if defined(__clang__) +#include "test_macros.h" + +#if defined(TEST_COMPILER_CLANG) #pragma clang diagnostic ignored "-Wtautological-compare" +#elif defined(TEST_COMPILER_C1XX) +#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. #endif template <std::size_t N> Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/flip_one.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/flip_one.pass.cpp?rev=302325&r1=302324&r2=302325&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/flip_one.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/flip_one.pass.cpp Fri May 5 18:51:39 2017 @@ -15,6 +15,10 @@ #include "test_macros.h" +#if defined(TEST_COMPILER_C1XX) +#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. +#endif + template <std::size_t N> std::bitset<N> make_bitset() Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/index.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/index.pass.cpp?rev=302325&r1=302324&r2=302325&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/index.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/index.pass.cpp Fri May 5 18:51:39 2017 @@ -14,8 +14,12 @@ #include <cstdlib> #include <cassert> -#if defined(__clang__) +#include "test_macros.h" + +#if defined(TEST_COMPILER_CLANG) #pragma clang diagnostic ignored "-Wtautological-compare" +#elif defined(TEST_COMPILER_C1XX) +#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. #endif template <std::size_t N> Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/index_const.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/index_const.pass.cpp?rev=302325&r1=302324&r2=302325&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/index_const.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/index_const.pass.cpp Fri May 5 18:51:39 2017 @@ -14,8 +14,12 @@ #include <cstdlib> #include <cassert> -#if defined(__clang__) +#include "test_macros.h" + +#if defined(TEST_COMPILER_CLANG) #pragma clang diagnostic ignored "-Wtautological-compare" +#elif defined(TEST_COMPILER_C1XX) +#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. #endif template <std::size_t N> Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/left_shift.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/left_shift.pass.cpp?rev=302325&r1=302324&r2=302325&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/left_shift.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/left_shift.pass.cpp Fri May 5 18:51:39 2017 @@ -13,8 +13,12 @@ #include <cstdlib> #include <cassert> -#if defined(__clang__) +#include "test_macros.h" + +#if defined(TEST_COMPILER_CLANG) #pragma clang diagnostic ignored "-Wtautological-compare" +#elif defined(TEST_COMPILER_C1XX) +#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. #endif template <std::size_t N> Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/left_shift_eq.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/left_shift_eq.pass.cpp?rev=302325&r1=302324&r2=302325&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/left_shift_eq.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/left_shift_eq.pass.cpp Fri May 5 18:51:39 2017 @@ -13,8 +13,12 @@ #include <cstdlib> #include <cassert> -#if defined(__clang__) +#include "test_macros.h" + +#if defined(TEST_COMPILER_CLANG) #pragma clang diagnostic ignored "-Wtautological-compare" +#elif defined(TEST_COMPILER_C1XX) +#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. #endif template <std::size_t N> Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/not_all.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/not_all.pass.cpp?rev=302325&r1=302324&r2=302325&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/not_all.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/not_all.pass.cpp Fri May 5 18:51:39 2017 @@ -13,8 +13,12 @@ #include <cstdlib> #include <cassert> -#if defined(__clang__) +#include "test_macros.h" + +#if defined(TEST_COMPILER_CLANG) #pragma clang diagnostic ignored "-Wtautological-compare" +#elif defined(TEST_COMPILER_C1XX) +#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. #endif template <std::size_t N> Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_and_eq.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_and_eq.pass.cpp?rev=302325&r1=302324&r2=302325&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_and_eq.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_and_eq.pass.cpp Fri May 5 18:51:39 2017 @@ -13,8 +13,12 @@ #include <cstdlib> #include <cassert> -#if defined(__clang__) +#include "test_macros.h" + +#if defined(TEST_COMPILER_CLANG) #pragma clang diagnostic ignored "-Wtautological-compare" +#elif defined(TEST_COMPILER_C1XX) +#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. #endif template <std::size_t N> Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_eq_eq.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_eq_eq.pass.cpp?rev=302325&r1=302324&r2=302325&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_eq_eq.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_eq_eq.pass.cpp Fri May 5 18:51:39 2017 @@ -17,8 +17,12 @@ #include <cstdlib> #include <cassert> -#if defined(__clang__) +#include "test_macros.h" + +#if defined(TEST_COMPILER_CLANG) #pragma clang diagnostic ignored "-Wtautological-compare" +#elif defined(TEST_COMPILER_C1XX) +#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. #endif template <std::size_t N> Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp?rev=302325&r1=302324&r2=302325&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp Fri May 5 18:51:39 2017 @@ -13,8 +13,12 @@ #include <cstdlib> #include <cassert> -#if defined(__clang__) +#include "test_macros.h" + +#if defined(TEST_COMPILER_CLANG) #pragma clang diagnostic ignored "-Wtautological-compare" +#elif defined(TEST_COMPILER_C1XX) +#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. #endif template <std::size_t N> Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_xor_eq.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_xor_eq.pass.cpp?rev=302325&r1=302324&r2=302325&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_xor_eq.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_xor_eq.pass.cpp Fri May 5 18:51:39 2017 @@ -13,8 +13,12 @@ #include <cstdlib> #include <cassert> -#if defined(__clang__) +#include "test_macros.h" + +#if defined(TEST_COMPILER_CLANG) #pragma clang diagnostic ignored "-Wtautological-compare" +#elif defined(TEST_COMPILER_C1XX) +#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. #endif template <std::size_t N> Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/reset_all.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/reset_all.pass.cpp?rev=302325&r1=302324&r2=302325&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/reset_all.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/reset_all.pass.cpp Fri May 5 18:51:39 2017 @@ -12,8 +12,12 @@ #include <bitset> #include <cassert> -#if defined(__clang__) +#include "test_macros.h" + +#if defined(TEST_COMPILER_CLANG) #pragma clang diagnostic ignored "-Wtautological-compare" +#elif defined(TEST_COMPILER_C1XX) +#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. #endif template <std::size_t N> Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/right_shift.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/right_shift.pass.cpp?rev=302325&r1=302324&r2=302325&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/right_shift.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/right_shift.pass.cpp Fri May 5 18:51:39 2017 @@ -13,8 +13,12 @@ #include <cstdlib> #include <cassert> -#if defined(__clang__) +#include "test_macros.h" + +#if defined(TEST_COMPILER_CLANG) #pragma clang diagnostic ignored "-Wtautological-compare" +#elif defined(TEST_COMPILER_C1XX) +#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. #endif template <std::size_t N> Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp?rev=302325&r1=302324&r2=302325&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp Fri May 5 18:51:39 2017 @@ -13,8 +13,12 @@ #include <cstdlib> #include <cassert> -#if defined(__clang__) +#include "test_macros.h" + +#if defined(TEST_COMPILER_CLANG) #pragma clang diagnostic ignored "-Wtautological-compare" +#elif defined(TEST_COMPILER_C1XX) +#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. #endif template <std::size_t N> Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/set_all.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/set_all.pass.cpp?rev=302325&r1=302324&r2=302325&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/set_all.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/set_all.pass.cpp Fri May 5 18:51:39 2017 @@ -12,8 +12,12 @@ #include <bitset> #include <cassert> -#if defined(__clang__) +#include "test_macros.h" + +#if defined(TEST_COMPILER_CLANG) #pragma clang diagnostic ignored "-Wtautological-compare" +#elif defined(TEST_COMPILER_C1XX) +#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. #endif template <std::size_t N> Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/test.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/test.pass.cpp?rev=302325&r1=302324&r2=302325&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/test.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/test.pass.cpp Fri May 5 18:51:39 2017 @@ -15,6 +15,10 @@ #include "test_macros.h" +#if defined(TEST_COMPILER_C1XX) +#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. +#endif + template <std::size_t N> std::bitset<N> make_bitset() Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/to_string.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/to_string.pass.cpp?rev=302325&r1=302324&r2=302325&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/to_string.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/to_string.pass.cpp Fri May 5 18:51:39 2017 @@ -26,8 +26,12 @@ #include <cstdlib> #include <cassert> -#if defined(__clang__) +#include "test_macros.h" + +#if defined(TEST_COMPILER_CLANG) #pragma clang diagnostic ignored "-Wtautological-compare" +#elif defined(TEST_COMPILER_C1XX) +#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. #endif template <std::size_t N> Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_and.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_and.pass.cpp?rev=302325&r1=302324&r2=302325&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_and.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_and.pass.cpp Fri May 5 18:51:39 2017 @@ -13,8 +13,12 @@ #include <cstdlib> #include <cassert> -#if defined(__clang__) +#include "test_macros.h" + +#if defined(TEST_COMPILER_CLANG) #pragma clang diagnostic ignored "-Wtautological-compare" +#elif defined(TEST_COMPILER_C1XX) +#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. #endif template <std::size_t N> Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_not.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_not.pass.cpp?rev=302325&r1=302324&r2=302325&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_not.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_not.pass.cpp Fri May 5 18:51:39 2017 @@ -13,8 +13,12 @@ #include <cstdlib> #include <cassert> -#if defined(__clang__) +#include "test_macros.h" + +#if defined(TEST_COMPILER_CLANG) #pragma clang diagnostic ignored "-Wtautological-compare" +#elif defined(TEST_COMPILER_C1XX) +#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. #endif template <std::size_t N> Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_or.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_or.pass.cpp?rev=302325&r1=302324&r2=302325&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_or.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_or.pass.cpp Fri May 5 18:51:39 2017 @@ -13,8 +13,12 @@ #include <cstdlib> #include <cassert> -#if defined(__clang__) +#include "test_macros.h" + +#if defined(TEST_COMPILER_CLANG) #pragma clang diagnostic ignored "-Wtautological-compare" +#elif defined(TEST_COMPILER_C1XX) +#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. #endif template <std::size_t N> Modified: libcxx/trunk/test/support/msvc_stdlib_force_include.hpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/support/msvc_stdlib_force_include.hpp?rev=302325&r1=302324&r2=302325&view=diff ============================================================================== --- libcxx/trunk/test/support/msvc_stdlib_force_include.hpp (original) +++ libcxx/trunk/test/support/msvc_stdlib_force_include.hpp Fri May 5 18:51:39 2017 @@ -57,7 +57,6 @@ const AssertionDialogAvoider assertion_d #pragma warning(disable: 4180) // qualifier applied to function type has no meaning; ignored #pragma warning(disable: 4521) // multiple copy constructors specified #pragma warning(disable: 4702) // unreachable code - #pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed. #pragma warning(disable: 28251) // Inconsistent annotation for 'new': this instance has no annotations. #endif // !defined(__clang__) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits