diff options
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); |