1 ; RUN: llvm-dis < %s.bc| FileCheck %s
2 ; RUN: verify-uselistorder < %s.bc
4 ; global-variables.3.2.ll.bc was generated by passing this file to llvm-as-3.2.
5 ; The test checks that LLVM does not silently misread global variables attributes of
8 @global.var = global i32 1
9 ; CHECK: @global.var = global i32 1
11 @constant.var = constant i32 1
12 ; CHECK: @constant.var = constant i32 1
14 @noinit.var = global float undef
15 ; CHECK: @noinit.var = global float undef
17 @section.var = global i32 1, section "foo"
18 ; CHECK: @section.var = global i32 1, section "foo"
20 @align.var = global i64 undef, align 8
21 ; CHECK: @align.var = global i64 undef, align 8
23 @unnamed_addr.var = unnamed_addr global i8 1
24 ; CHECK: @unnamed_addr.var = unnamed_addr global i8 1
26 @default_addrspace.var = addrspace(0) global i8 1
27 ; CHECK: @default_addrspace.var = global i8 1
29 @non_default_addrspace.var = addrspace(1) global i8* undef
30 ; CHECK: @non_default_addrspace.var = addrspace(1) global i8* undef
32 @initialexec.var = thread_local(initialexec) global i32 0, align 4
33 ; CHECK: @initialexec.var = thread_local(initialexec) global i32 0, align 4
35 @localdynamic.var = thread_local(localdynamic) constant i32 0, align 4
36 ; CHECK: @localdynamic.var = thread_local(localdynamic) constant i32 0, align 4
38 @localexec.var = thread_local(localexec) constant i32 0, align 4
39 ; CHECK: @localexec.var = thread_local(localexec) constant i32 0, align 4
41 @string.var = private unnamed_addr constant [13 x i8] c"hello world\0A\00"
42 ; CHECK: @string.var = private unnamed_addr constant [13 x i8] c"hello world\0A\00"