llvm-project/clang/test/CodeGen/aligned_alloc-libcall.c
Nikita Popov 39db5e1ed8 [CodeGen] Convert tests to opaque pointers (NFC)
Conversion performed using the script at:
https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34

These are only tests where no manual fixup was required.
2022-10-07 14:22:00 +02:00

12 lines
347 B
C

// RUN: %clang_cc1 -fno-builtin-aligned_alloc -emit-llvm < %s | FileCheck %s
typedef __SIZE_TYPE__ size_t;
void *aligned_alloc(size_t, size_t);
void *test(size_t alignment, size_t size) {
// CHECK: call ptr @aligned_alloc{{.*}} #2
return aligned_alloc(alignment, size);
}
// CHECK: attributes #2 = { nobuiltin "no-builtin-aligned_alloc" }