bolt/deps/llvm-18.1.8/llvm/test/Assembler/opaque-ptr-invalid-forward-ref.ll

10 lines
229 B
LLVM
Raw Normal View History

2025-02-14 19:21:04 +01:00
; RUN: not llvm-as < %s 2>&1 | FileCheck %s
; CHECK: invalid forward reference to function 'f' with wrong type: expected 'ptr' but was 'ptr addrspace(1)'
@a = alias void (), ptr addrspace(1) @f
define void @f() {
ret void
}