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