[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
This commit is contained in:
Stephan T. Lavavej 2018-04-12 23:56:14 +00:00
parent cf017f0451
commit 23e82831e5
1 changed files with 4 additions and 0 deletions

View File

@ -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