mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-20 13:04:00 +00:00
Reassign the buffer to the pointer so that we don't overwrite memory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61596 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5679d18c54
commit
3d45f53b7a
@ -172,9 +172,11 @@ TEST_F(ImmutableSetTest, Callback2CharSetTest) {
|
||||
|
||||
ASSERT_EQ(obj.counter, 6);
|
||||
|
||||
ptr = buffer;
|
||||
S2.foreach<MyIter>(obj);
|
||||
ASSERT_EQ(obj.counter, 6+3);
|
||||
|
||||
ptr = buffer;
|
||||
S.foreach<MyIter>(obj);
|
||||
ASSERT_EQ(obj.counter, 6+3+0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user