1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 %s -emit-llvm -o - -fms-extensions -triple i686-pc-win32 | FileCheck %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc // CHECK-LABEL: define void @test_alloca 4*f4a2713aSLionel Sambuc void capture(void *); test_alloca(int n)5*f4a2713aSLionel Sambucvoid test_alloca(int n) { 6*f4a2713aSLionel Sambuc capture(_alloca(n)); 7*f4a2713aSLionel Sambuc // CHECK: %[[arg:.*]] = alloca i8, i32 % 8*f4a2713aSLionel Sambuc // CHECK: call void @capture(i8* %[[arg]]) 9*f4a2713aSLionel Sambuc } 10