1 ; RUN: llvm-link %s %p/Inputs/byval-types-1.ll -S | FileCheck %s
3 %struct = type {i32, i8}
5 declare void @foo(%struct* byval(%struct) %a)
9 ; CHECK: call void @foo(%struct* byval(%struct) %ptr)
10 call void @foo(%struct* byval(%struct) %ptr)
14 ; CHECK: define void @foo(%struct* byval(%struct) %a)
15 ; CHECK-NEXT: call void @baz(%struct* byval(%struct) %a)
17 ; CHECK: declare void @baz(%struct* byval(%struct))