diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-08-26 15:23:38 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-08-26 15:23:38 +0000 |
commit | 7648fb464b339b4055e1fd3323716246eb135c67 (patch) | |
tree | 511b32ced38b2213bee0cb8ee73204f4dafc46e3 /clang/test/CodeGenCXX | |
parent | ead810e42bd6a709b3bf5b83646490d4a55bc38b (diff) | |
download | bcm5719-llvm-7648fb464b339b4055e1fd3323716246eb135c67.tar.gz bcm5719-llvm-7648fb464b339b4055e1fd3323716246eb135c67.zip |
Fix miscompilation. The cookie was not used when new'ing arrays with multiple dimensions.
llvm-svn: 112188
Diffstat (limited to 'clang/test/CodeGenCXX')
-rw-r--r-- | clang/test/CodeGenCXX/new.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/new.cpp b/clang/test/CodeGenCXX/new.cpp index 372bf463647..42d7c9f1a37 100644 --- a/clang/test/CodeGenCXX/new.cpp +++ b/clang/test/CodeGenCXX/new.cpp @@ -146,12 +146,15 @@ void t13(int n) { } struct Alloc{ + int x; void* operator new[](size_t size); void operator delete[](void* p); + ~Alloc(); }; void f() { - // CHECK: call i8* @_ZN5AllocnaEm(i64 200) + // CHECK: call i8* @_ZN5AllocnaEm(i64 808) + // CHECK: store i64 200 // CHECK: call void @_ZN5AllocdaEPv(i8* delete[] new Alloc[10][20]; } |