blob: c66b5b73066f0621ebc8bb37479766bd575f0216 [file] [log] [blame]
Justin Holewinski898a0a02012-11-16 21:03:47 +00001; RUN: llvm-as < %s | llvm-dis | FileCheck %s
Duncan P. N. Exon Smithc8eccd12014-08-19 21:08:27 +00002; RUN: verify-uselistorder %s
Justin Holewinski898a0a02012-11-16 21:03:47 +00003
4; Make sure the address space of forward decls is preserved
5
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
Karl Schimpf77729782015-09-03 18:06:44 +000010
11; Now test with global IDs instead of global names.
12
13; CHECK: @a3 = global i8 addrspace(1)* @0
14; CHECK: @0 = addrspace(1) global i8 0
15
16@a3 = global i8 addrspace(1)* @0
17@0 = addrspace(1) global i8 0
18