diff options
Diffstat (limited to 'test/sanitizer_common/TestCases/Linux/aligned_alloc.c')
-rw-r--r-- | test/sanitizer_common/TestCases/Linux/aligned_alloc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/sanitizer_common/TestCases/Linux/aligned_alloc.c b/test/sanitizer_common/TestCases/Linux/aligned_alloc.c new file mode 100644 index 0000000000000..12af18dd32a17 --- /dev/null +++ b/test/sanitizer_common/TestCases/Linux/aligned_alloc.c @@ -0,0 +1,8 @@ +// RUN: %clang -std=c11 -O0 %s -o %t && %run %t +#include <stdlib.h> +extern void *aligned_alloc (size_t alignment, size_t size); +int main() { + volatile void *p = aligned_alloc(128, 1024); + free((void*)p); + return 0; +} |