[libcxx] [test] Fix MSVC "warning C6326: Potential comparison of a constant with another constant".

The expressions `1 == 1` and `true` have the same type, value category, and value.

Fixes D32924.

llvm-svn: 302322
This commit is contained in:
Stephan T. Lavavej
2017-05-05 23:38:24 +00:00
parent ddf8111331
commit a807f5cd62

View File

@@ -48,7 +48,7 @@ int main()
assert(c.front() == false);
assert(c.back() == true);
#endif
c.emplace_back(1 == 1);
c.emplace_back(true);
assert(c.size() == 3);
assert(c.front() == false);
assert(c[1] == true);
@@ -82,7 +82,7 @@ int main()
assert(c.front() == false);
assert(c.back() == true);
#endif
c.emplace_back(1 == 1);
c.emplace_back(true);
assert(c.size() == 3);
assert(c.front() == false);
assert(c[1] == true);