brintos

brintos / llvm-project-archived public Read only

0
0
Text · 545 B · da5c8fe Raw
22 lines · plain
1; RUN: not --crash llc < %s -mtriple=s390x-linux-gnu -argext-abi-check 2>&1 \2; RUN:   | FileCheck %s3; REQUIRES: asserts4;5; Test detection of missing extension involving an internal function which is6; passed as a function pointer to an external function.7 8define internal i32 @bar(i32 %Arg) {9  ret i32 %Arg10}11 12declare void @ExtFun(ptr %FunPtr);13 14define void @foo() {15  call void @ExtFun(ptr @bar)16  ret void17}18 19; CHECK: ERROR: Missing extension attribute of returned value from function:20; CHECK: i32 @bar(i32)21; CHECK: UNREACHABLE executed22