1; RUN: not --crash llc < %s -mtriple=s390x-linux-gnu -argext-abi-check 2>&1 \ 2; RUN: | FileCheck %s 3; REQUIRES: asserts 4; 5; Test detection of missing extension involving an internal function which is 6; passed as a function pointer to an external function. 7 8define internal i32 @bar(i32 %Arg) { 9 ret i32 %Arg 10} 11 12declare void @ExtFun(ptr %FunPtr); 13 14define void @foo() { 15 call void @ExtFun(ptr @bar) 16 ret void 17} 18 19; CHECK: ERROR: Missing extension attribute of returned value from function: 20; CHECK: i32 @bar(i32) 21; CHECK: UNREACHABLE executed 22