mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:40:01 +08:00
Fix = that should have been == in test. Thanks to STL@microsoft for the catch
llvm-svn: 267654
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