aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/SystemZ/args-21.ll
blob: da5c8fe5ffc7fc7d9e1242829e0ab47b55bd8ec9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
; RUN: not --crash llc < %s -mtriple=s390x-linux-gnu -argext-abi-check 2>&1 \
; RUN:   | FileCheck %s
; REQUIRES: asserts
;
; Test detection of missing extension involving an internal function which is
; passed as a function pointer to an external function.

define internal i32 @bar(i32 %Arg) {
  ret i32 %Arg
}

declare void @ExtFun(ptr %FunPtr);

define void @foo() {
  call void @ExtFun(ptr @bar)
  ret void
}

; CHECK: ERROR: Missing extension attribute of returned value from function:
; CHECK: i32 @bar(i32)
; CHECK: UNREACHABLE executed