2012-11-17 05:03:47 +08:00
|
|
|
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
2014-08-20 05:08:27 +08:00
|
|
|
; RUN: verify-uselistorder %s
|
2012-11-17 05:03:47 +08:00
|
|
|
|
|
|
|
; 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
|
2015-09-04 02:06:44 +08:00
|
|
|
|
|
|
|
; Now test with global IDs instead of global names.
|
|
|
|
|
|
|
|
; CHECK: @a3 = global i8 addrspace(1)* @0
|
|
|
|
; CHECK: @0 = addrspace(1) global i8 0
|
|
|
|
|
|
|
|
@a3 = global i8 addrspace(1)* @0
|
|
|
|
@0 = addrspace(1) global i8 0
|
|
|
|
|