mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-26 13:26:22 +00:00
[asan] Replace valloc with posix_memalign in test.
valloc is gone in android-21. llvm-svn: 246741
This commit is contained in:
parent
59365b0ba6
commit
afe6c1d466
@ -2,8 +2,5 @@
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && %run %t
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#if !defined(__APPLE__) && !defined(__FreeBSD__)
|
||||
# include <malloc.h>
|
||||
#endif // !__APPLE__ && !__FreeBSD__
|
||||
int *p = (int*)valloc(1 << 20);
|
||||
int main() { }
|
||||
int *p;
|
||||
int main() { posix_memalign((void **)&p, 4096, 1 << 20); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user