aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/aligned_alloc-libcall.c
blob: 26408d06a9e14f9aed366f80fb5bf878415b354e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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" }