xref: /llvm-project/llvm/test/Transforms/MergeFunc/mismatching-attr-crash.ll (revision ee2789001b8558656a13502f0de2c81dcb419430)
1; RUN: opt -S -passes=mergefunc %s | FileCheck %s
2
3; CHECK-LABEL: define void @foo
4; CHECK: call void %a0
5define void @foo(ptr byval(i8) %a0, ptr swiftself %a4) {
6entry:
7  call void %a0(ptr byval(i8) %a0, ptr swiftself %a4)
8  ret void
9}
10
11; CHECK-LABEL: define void @bar
12; CHECK: call void %a0
13define void @bar(ptr byval(i8) %a0, ptr swifterror %a4) {
14entry:
15  call void %a0(ptr byval(i8) %a0, ptr swifterror %a4)
16  ret void
17}
18
19
20