summaryrefslogtreecommitdiff
path: root/test/Assembler/global-addrspace-forwardref.ll
blob: f0f094a2248dd83847cb0e21f4d53f7206e5bd4d (plain)
1
2
3
4
5
6
7
8
; RUN: llvm-as < %s | llvm-dis | FileCheck %s

; Make sure the address space of forward decls is preserved

; CHECK: @a2 = global i8 addrspace(1)* @a
; CHECK: @a = addrspace(1) global i8 0
@a2 = global i8 addrspace(1)* @a
@a = addrspace(1) global i8 0