From aeac31c8a15bd5e399dcef65f98b11239f18f998 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 2 Jan 2009 23:13:30 +0000 Subject: Reassign the buffer to the pointer so that we don't overwrite memory. llvm-svn: 61596 --- llvm/unittests/ADT/ImmutableSetTest.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/unittests/ADT/ImmutableSetTest.cpp') diff --git a/llvm/unittests/ADT/ImmutableSetTest.cpp b/llvm/unittests/ADT/ImmutableSetTest.cpp index 2282cb8..74cd684 100644 --- a/llvm/unittests/ADT/ImmutableSetTest.cpp +++ b/llvm/unittests/ADT/ImmutableSetTest.cpp @@ -172,9 +172,11 @@ TEST_F(ImmutableSetTest, Callback2CharSetTest) { ASSERT_EQ(obj.counter, 6); + ptr = buffer; S2.foreach(obj); ASSERT_EQ(obj.counter, 6+3); + ptr = buffer; S.foreach(obj); ASSERT_EQ(obj.counter, 6+3+0); } -- cgit v1.1