1 ; RUN: not --crash llc < %s -mtriple=s390x-linux-gnu -argext-abi-check 2>&1 \
5 ; Test detection of missing extension involving an internal function which is
6 ; passed as a function pointer to an external function.
8 define internal i32 @bar(i32 %Arg) {
12 declare void @ExtFun(ptr %FunPtr);
15 call void @ExtFun(ptr @bar)
19 ; CHECK: ERROR: Missing extension attribute of returned value from function:
20 ; CHECK: i32 @bar(i32)
21 ; CHECK: UNREACHABLE executed