1 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
2 ; RUN: verify-uselistorder %s
4 ; Make sure the address space of forward decls is preserved
6 ; CHECK: @a2 = global i8 addrspace(1)* @a
7 ; CHECK: @a = addrspace(1) global i8 0
8 @a2 = global i8 addrspace(1)* @a
9 @a = addrspace(1) global i8 0
11 ; Now test with global IDs instead of global names.
13 ; CHECK: @a3 = global i8 addrspace(1)* @0
14 ; CHECK: @0 = addrspace(1) global i8 0
16 @a3 = global i8 addrspace(1)* @0
17 @0 = addrspace(1) global i8 0