diff options
author | Stephan T. Lavavej <stl@exchange.microsoft.com> | 2018-04-12 23:56:14 +0000 |
---|---|---|
committer | Stephan T. Lavavej <stl@exchange.microsoft.com> | 2018-04-12 23:56:14 +0000 |
commit | 23e82831e55dd1a998be6521a4e61dce941b1aec (patch) | |
tree | 42f6b78c4407d4bf03fc02eaceabe6aec3f4efb9 /libcxx/test | |
parent | cf017f0451724eb16411b826df0e05ad7f8ac108 (diff) | |
download | bcm5719-llvm-23e82831e55dd1a998be6521a4e61dce941b1aec.tar.gz bcm5719-llvm-23e82831e55dd1a998be6521a4e61dce941b1aec.zip |
[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.
llvm-svn: 329976
Diffstat (limited to 'libcxx/test')
-rw-r--r-- | libcxx/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/test_neg_one.pass.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/test_neg_one.pass.cpp b/libcxx/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/test_neg_one.pass.cpp index fa0641f618c..693d81ab58d 100644 --- a/libcxx/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/test_neg_one.pass.cpp +++ b/libcxx/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 |