Files
clang-p2996/llvm/test/Assembler/opaque-ptr-invalid-forward-ref-2.ll
Nikita Popov a803cb9e52 [AsmParser] Check forward reference type with opaque pointers
While we don't need to check the element type in this case, we
do need to make sure that the pointers have the same address space,
otherwise RAUW will assert.
2022-03-11 17:16:34 +01:00

7 lines
190 B
LLVM

; RUN: not llvm-as -opaque-pointers < %s 2>&1 | FileCheck %s
; CHECK: forward reference and definition of global have different types
@a = alias i32, ptr addrspace(1) @g
@g = global i32 0