commit | 97fc529b73c07cc9a77b688250d5f0df424da8a8 | [log] [tgz] |
---|---|---|
author | Stephan T. Lavavej <stl@exchange.microsoft.com> | Thu Apr 12 23:56:14 2018 +0000 |
committer | Stephan T. Lavavej <stl@exchange.microsoft.com> | Thu Apr 12 23:56:14 2018 +0000 |
tree | 3429665f2cdd6465ab0cbf10ecb85274a75a92a7 | |
parent | ebb3225ce5f84ad0386edefaba815515d8a42dd2 [diff] |
[libcxx] [test] Silence MSVC warning C4146. This test code triggers the MSVC warning: "unary minus operator applied to unsigned type, result still unsigned" Although it would be possible to change the test code to avoid this warning, I have chosen to simply silence it. Fixes D45594. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@329976 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/test_neg_one.pass.cpp b/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/test_neg_one.pass.cpp index fa0641f..693d81a 100644 --- a/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/test_neg_one.pass.cpp +++ b/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/test_neg_one.pass.cpp
@@ -22,6 +22,10 @@ #include <iostream> #include "test_iterators.h" +#ifdef _MSC_VER +#pragma warning(disable: 4146) // unary minus operator applied to unsigned type, result still unsigned +#endif + typedef std::num_get<char, input_iterator<const char*> > F; class my_facet