diff options
author | Anders Carlsson <andersca@mac.com> | 2009-06-01 00:40:08 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-06-01 00:40:08 +0000 |
commit | a53f93be9846a6345b97ce6e6f0b7a0da6da25eb (patch) | |
tree | 5c13cb605fbbaf30e064c06fcbb9587c309db842 /test/SemaTemplate/example-dynarray.cpp | |
parent | 215bd208d6eeff397bc4316d046ea8b4633efedf (diff) |
After spending 15 minutes trying to figure out why this was crashing, I realized it was a bug in the test case :)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72680 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/example-dynarray.cpp')
-rw-r--r-- | test/SemaTemplate/example-dynarray.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaTemplate/example-dynarray.cpp b/test/SemaTemplate/example-dynarray.cpp index dd2488fc38..cca3709beb 100644 --- a/test/SemaTemplate/example-dynarray.cpp +++ b/test/SemaTemplate/example-dynarray.cpp @@ -31,7 +31,7 @@ public: T* NewStart = (T*)malloc(sizeof(T) * other.size()); for (unsigned I = 0, N = other.size(); I != N; ++I) - new (Start + I) T(other[I]); + new (NewStart + I) T(other[I]); // FIXME: destroy everything in Start free(Start); |