Fix = that should have been == in test. Thanks to STL@microsoft for the catch
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@267654 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user