llvm/llvm/test/CodeGen/X86/preserve_nonecc_musttail.ll

; RUN: not llc -mtriple=x86_64-unknown-unknown -mcpu=corei7 %s -o - 2>&1 | FileCheck %s

; Incompatible calling convention causes following error message.

; CHECK: cannot guarantee tail call due to mismatched calling conv

declare preserve_nonecc void @callee(ptr)
define void @caller(ptr %a) {
  musttail call preserve_nonecc void @callee(ptr %a)
  ret void
}