mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
Reassign the buffer to the pointer so that we don't overwrite memory.
llvm-svn: 61596
This commit is contained in:
parent
45c8a4df20
commit
d06d6312d3
@ -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…
Reference in New Issue
Block a user