Fix = that should have been == in test. Thanks to STL@microsoft for the catch

llvm-svn: 267654
This commit is contained in:
Marshall Clow
2016-04-27 01:46:43 +00:00
parent 5253a089ba
commit 91929f643e

View File

@@ -44,7 +44,7 @@ int main()
MapT map;
IterBool result = map.insert(std::make_pair(Key(0), 42));
assert(result.second);
assert(result.first->second = 42);
assert(result.first->second == 42);
IterBool result2 = map.insert(std::make_pair(Key(0), 43));
assert(!result2.second);
assert(map[Key(0)] == 42);