[compiler-rt] r328726 - [ASan] Add aligned_alloc declaration to aligned_alloc-alignment.cc test.

Alex Shlyapnikov via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 28 12:53:56 PDT 2018


Author: alekseyshl
Date: Wed Mar 28 12:53:55 2018
New Revision: 328726

URL: http://llvm.org/viewvc/llvm-project?rev=328726&view=rev
Log:
[ASan] Add aligned_alloc declaration to aligned_alloc-alignment.cc test.

aligned_alloc is not always defined in headers.

Differential Revision: https://reviews.llvm.org/D44404

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

Modified: compiler-rt/trunk/test/asan/TestCases/Linux/aligned_alloc-alignment.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/aligned_alloc-alignment.cc?rev=328726&r1=328725&r2=328726&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Linux/aligned_alloc-alignment.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Linux/aligned_alloc-alignment.cc Wed Mar 28 12:53:55 2018
@@ -5,6 +5,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+extern void *aligned_alloc (size_t alignment, size_t size);
+
 int main() {
   void *p = aligned_alloc(17, 100);
   // CHECK: ERROR: AddressSanitizer: invalid allocation alignment: 17




More information about the llvm-commits mailing list