1
0
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:
Bill Wendling 2009-01-02 23:13:30 +00:00
parent 45c8a4df20
commit d06d6312d3

View File

@ -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);
}