xref: /llvm-project/llvm/test/CodeGen/AArch64/preserve_nonecc_musttail.ll (revision ae1596a31a6fac2f4daafe1e256d4a5cf3742617)
1; RUN: not llc -mtriple=aarch64-unknown-unknown %s -o - 2>&1 | FileCheck %s
2
3; Incompatible calling convention causes following error message.
4
5; CHECK: cannot guarantee tail call due to mismatched calling conv
6
7declare preserve_nonecc void @callee(ptr)
8define void @caller(ptr %a) {
9  musttail call preserve_nonecc void @callee(ptr %a)
10  ret void
11}
12