1 ; RUN: llvm-link %s %p/Inputs/inalloca-type-input.ll -S | FileCheck %s
4 %struct = type { i32, i8 }
6 ; CHECK-LABEL: define void @f(ptr inalloca(%a) %0)
7 define void @f(ptr inalloca(%a)) {
11 ; CHECK-LABEL: define void @bar(
12 ; CHECK: call void @foo(ptr inalloca(%struct) %ptr)
14 %ptr = alloca inalloca %struct
15 call void @foo(ptr inalloca(%struct) %ptr)
19 ; CHECK-LABEL: define void @g(ptr inalloca(%a) %0)
21 ; CHECK-LABEL: define void @foo(ptr inalloca(%struct) %a)
22 ; CHECK-NEXT: call void @baz(ptr inalloca(%struct) %a)
23 declare void @foo(ptr inalloca(%struct) %a)
25 ; CHECK: declare void @baz(ptr inalloca(%struct))