summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/utilities/template.bitset/bitset.operators/op_and.pass.cpp
diff options
context:
space:
mode:
authorStephan T. Lavavej <stl@exchange.microsoft.com>2017-05-05 23:51:39 +0000
committerStephan T. Lavavej <stl@exchange.microsoft.com>2017-05-05 23:51:39 +0000
commite803cc52bd035b322c2907e2dc2ddb2b49eea163 (patch)
treef9d3e927b8258a43b5bec0cc4162bbf0d92f20c0 /libcxx/test/std/utilities/template.bitset/bitset.operators/op_and.pass.cpp
parentdccfdcb17bc199dad2443660eb80e7a5cdda8221 (diff)
downloadbcm5719-llvm-e803cc52bd035b322c2907e2dc2ddb2b49eea163.tar.gz
bcm5719-llvm-e803cc52bd035b322c2907e2dc2ddb2b49eea163.zip
[libcxx] [test] Suppress MSVC's /analyze warning C6294 in a more fine-grained manner.
Fixes D32926. llvm-svn: 302325
Diffstat (limited to 'libcxx/test/std/utilities/template.bitset/bitset.operators/op_and.pass.cpp')
-rw-r--r--libcxx/test/std/utilities/template.bitset/bitset.operators/op_and.pass.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/libcxx/test/std/utilities/template.bitset/bitset.operators/op_and.pass.cpp b/libcxx/test/std/utilities/template.bitset/bitset.operators/op_and.pass.cpp
index d86a10c6df1..e58c72016ee 100644
--- a/libcxx/test/std/utilities/template.bitset/bitset.operators/op_and.pass.cpp
+++ b/libcxx/test/std/utilities/template.bitset/bitset.operators/op_and.pass.cpp
@@ -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>
OpenPOWER on IntegriCloud