xref: /llvm-project/llvm/test/CodeGen/X86/preserve_nonecc_musttail.ll (revision c166a43c6e6157b1309ea757324cc0a71c078e66)
1; RUN: not llc -mtriple=x86_64-unknown-unknown -mcpu=corei7 %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