clang/test/CodeGen/memalign-libcall.c
raw| 1 | // RUN: %clang_cc1 -fno-builtin-memalign -emit-llvm < %s | FileCheck %s |
| 2 | |
| 3 | typedef __SIZE_TYPE__ size_t; |
| 4 | |
| 5 | void *memalign(size_t, size_t); |
| 6 | |
| 7 | void *test(size_t alignment, size_t size) { |
| 8 | // CHECK: call ptr @memalign{{.*}} #2 |
| 9 | return memalign(alignment, size); |
| 10 | } |
| 11 | |
| 12 | // CHECK: attributes #2 = { nobuiltin "no-builtin-memalign" } |