diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2016-03-01 00:38:39 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2016-03-01 00:38:39 +0000 |
commit | 7760ea1fbd387ea7ec81bfaf5407019a2b99cf0d (patch) | |
tree | 3d47059b56b5da7d15687df2b45f451d464fdd8a /test/asan | |
parent | 74d2871368c25923bf511b151d2e1eb86a57934f (diff) |
[asan] Fix new[]/delete mismatch in tests.
This code is actually never executed because all RUN lines trigger an
earlier heap-use-after-free, but there is still a compiler warning.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@262276 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/asan')
-rw-r--r-- | test/asan/TestCases/large_func_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/asan/TestCases/large_func_test.cc b/test/asan/TestCases/large_func_test.cc index 6b592f8c4..8d9afaeb4 100644 --- a/test/asan/TestCases/large_func_test.cc +++ b/test/asan/TestCases/large_func_test.cc @@ -49,5 +49,5 @@ int main(int argc, char **argv) { // CHECK-Linux: {{ #0 0x.* in operator new.*}} // CHECK-Darwin: {{ #0 0x.* in .*_Zna.*}} // CHECK: {{ #1 0x.* in main .*large_func_test.cc:}}[[@LINE-7]] - delete x; + delete[] x; } |