Skip to content

Commit abd9129

Browse files
committed
[NFC][SPIRV] Add test: call hidden function declaration
1 parent 6eb1ddf commit abd9129

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
; RUN: not llc -verify-machineinstrs -O0 -mtriple=spirv-unknown-unknown %s -o - 2>&1 | FileCheck %s
2+
; CHECK: LLVM ERROR: Unknown function in:
3+
; CHECK-SAME: OpFunctionCall %{{[0-9]+}}:type, @bar
4+
5+
define hidden spir_kernel void @foo() addrspace(4) {
6+
entry:
7+
call spir_func addrspace(4) void @bar()
8+
ret void
9+
}
10+
11+
declare hidden spir_func void @bar() addrspace(4)

0 commit comments

Comments
 (0)