[libcxx] r294719 - test: fix test under Windows
Saleem Abdulrasool via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 9 22:51:19 PST 2017
Author: compnerd
Date: Fri Feb 10 00:51:19 2017
New Revision: 294719
URL: http://llvm.org/viewvc/llvm-project?rev=294719&view=rev
Log:
test: fix test under Windows
When running the test under clang-cl, we do not report `__GNUC__`, which
is needed to supress the warnings which are being treated as errors.
Modified:
libcxx/trunk/test/libcxx/containers/associative/undef_min_max.pass.cpp
Modified: libcxx/trunk/test/libcxx/containers/associative/undef_min_max.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/containers/associative/undef_min_max.pass.cpp?rev=294719&r1=294718&r2=294719&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/containers/associative/undef_min_max.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/containers/associative/undef_min_max.pass.cpp Fri Feb 10 00:51:19 2017
@@ -7,7 +7,7 @@
//
//===----------------------------------------------------------------------===//
-#if defined(__GNUC__)
+#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic ignored "-W#warnings"
#endif
More information about the cfe-commits
mailing list