1 ; RUN: opt -S -mergefunc %s | FileCheck %s
3 ; CHECK-LABEL: define void @foo
5 define void @foo(i8* byval(i8) %a0, i8* swiftself %a4) {
7 %bc = bitcast i8* %a0 to void (i8*, i8*)*
8 call void %bc(i8* byval(i8) %a0, i8* swiftself %a4)
12 ; CHECK-LABEL: define void @bar
13 ; CHECK: call void %bc
14 define void @bar(i8* byval(i8) %a0, i8** swifterror %a4) {
16 %bc = bitcast i8* %a0 to void (i8*, i8**)*
17 call void %bc(i8* byval(i8) %a0, i8** swifterror %a4)