[compiler-rt] r230242 - Add -fdefine-sized-deallocation to ASan test case.

Alexey Samsonov vonosmas at gmail.com
Mon Feb 23 11:18:31 PST 2015


Author: samsonov
Date: Mon Feb 23 13:18:31 2015
New Revision: 230242

URL: http://llvm.org/viewvc/llvm-project?rev=230242&view=rev
Log:
Add -fdefine-sized-deallocation to ASan test case.

This flag is now needed to force Clang emit the weak definition
of sized delete if it's not present in the header.

Modified:
    compiler-rt/trunk/test/asan/TestCases/Linux/sized_delete_test.cc

Modified: compiler-rt/trunk/test/asan/TestCases/Linux/sized_delete_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/sized_delete_test.cc?rev=230242&r1=230241&r2=230242&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Linux/sized_delete_test.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Linux/sized_delete_test.cc Mon Feb 23 13:18:31 2015
@@ -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





More information about the llvm-commits mailing list