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.
7 lines
190 B
LLVM
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
|