diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-01-02 23:13:30 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-01-02 23:13:30 +0000 |
commit | 3d45f53b7a2cbc336e4980ccb3a41ba2c3874ff4 (patch) | |
tree | a79b094a45670670573a022482f7cd41f8d3013a /unittests | |
parent | 5679d18c54ef46170e46f51bf471bb334f2b6525 (diff) | |
download | external_llvm-3d45f53b7a2cbc336e4980ccb3a41ba2c3874ff4.zip external_llvm-3d45f53b7a2cbc336e4980ccb3a41ba2c3874ff4.tar.gz external_llvm-3d45f53b7a2cbc336e4980ccb3a41ba2c3874ff4.tar.bz2 |
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
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/ADT/ImmutableSetTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/unittests/ADT/ImmutableSetTest.cpp b/unittests/ADT/ImmutableSetTest.cpp index 2282cb8..74cd684 100644 --- a/unittests/ADT/ImmutableSetTest.cpp +++ b/unittests/ADT/ImmutableSetTest.cpp @@ -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); } |