blob: fa631f535d1d5dff2c09b09e817081b3f48d14fc [file]
; RUN: not --crash llc < %s -mtriple=s390x-linux-gnu -argext-abi-check 2>&1 \
; RUN: | FileCheck %s
; REQUIRES: asserts
;
; Test detection of missing extension of an outgoing i8 call argument.
define void @caller() {
call void @bar_Struct(i8 123)
ret void
}
declare void @bar_Struct(i8 %Arg)
; CHECK: ERROR: (C ABI violation) missing extension attribute on arg 0.
; CHECK: Callee: void @bar_Struct(i8)
; CHECK: Caller: void @caller()
; CHECK: call void @bar_Struct(i8 123)
; CHECK: UNREACHABLE executed