[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGen / aligned_alloc-libcall.c
blob26408d06a9e14f9aed366f80fb5bf878415b354e
1 // RUN: %clang_cc1 -fno-builtin-aligned_alloc -emit-llvm < %s | FileCheck %s
3 typedef __SIZE_TYPE__ size_t;
5 void *aligned_alloc(size_t, size_t);
7 void *test(size_t alignment, size_t size) {
8 // CHECK: call ptr @aligned_alloc{{.*}} #2
9 return aligned_alloc(alignment, size);
12 // CHECK: attributes #2 = { nobuiltin "no-builtin-aligned_alloc" }