xref: /llvm-project/llvm/test/Assembler/opaque-ptr-invalid-forward-ref.ll (revision edb2fc6dab2cf04779959829434e9e8572d48a26)
1; RUN: not llvm-as < %s 2>&1 | FileCheck %s
2
3; CHECK: invalid forward reference to function 'f' with wrong type: expected 'ptr' but was 'ptr addrspace(1)'
4
5@a = alias void (), ptr addrspace(1) @f
6
7define void @f() {
8  ret void
9}
10