Add -fdefine-sized-deallocation to ASan test case.
authorAlexey Samsonov <vonosmas@gmail.com>
Mon, 23 Feb 2015 19:18:31 +0000 (19:18 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Mon, 23 Feb 2015 19:18:31 +0000 (19:18 +0000)
This flag is now needed to force Clang emit the weak definition
of sized delete if it's not present in the header.

llvm-svn: 230242

compiler-rt/test/asan/TestCases/Linux/sized_delete_test.cc

index 343cb0a..1ce610f 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clangxx_asan -Xclang -fsized-deallocation -O0 %s -o %t
+// RUN: %clangxx_asan -Xclang -fdefine-sized-deallocation -Xclang -fsized-deallocation -O0 %s -o %t
 // RUN:                                         not %run %t scalar 2>&1 | FileCheck %s -check-prefix=SCALAR
 // RUN: ASAN_OPTIONS=new_delete_type_mismatch=1 not %run %t scalar 2>&1 | FileCheck %s -check-prefix=SCALAR
 // RUN:                                         not %run %t array  2>&1 | FileCheck %s -check-prefix=ARRAY