xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/builtins-ms.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 %s -emit-llvm -o - -fms-extensions -triple i686-pc-win32 | FileCheck %s
2 
3 // CHECK-LABEL: define void @test_alloca
4 void capture(void *);
test_alloca(int n)5 void test_alloca(int n) {
6   capture(_alloca(n));
7   // CHECK: %[[arg:.*]] = alloca i8, i32 %
8   // CHECK: call void @capture(i8* %[[arg]])
9 }
10