xref: /llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/aligned_alloc.c (revision 7c163a44aad58f04ff84c0307fe901640cd781e2)
1*7c163a44SKostya Serebryany // RUN: %clang -std=c11 -O0 %s -o %t && %run %t
2*7c163a44SKostya Serebryany #include <stdlib.h>
3*7c163a44SKostya Serebryany extern void *aligned_alloc (size_t alignment, size_t size);
main()4*7c163a44SKostya Serebryany int main() {
5*7c163a44SKostya Serebryany   volatile void *p = aligned_alloc(128, 1024);
6*7c163a44SKostya Serebryany   free((void*)p);
7*7c163a44SKostya Serebryany   return 0;
8*7c163a44SKostya Serebryany }
9