1; RUN: llvm-dis < %s.bc| FileCheck %s 2; RUN: verify-uselistorder < %s.bc 3 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 6; older bitcode files. 7 8@global.var = global i32 1 9; CHECK: @global.var = global i32 1 10 11@constant.var = constant i32 1 12; CHECK: @constant.var = constant i32 1 13 14@noinit.var = global float undef 15; CHECK: @noinit.var = global float undef 16 17@section.var = global i32 1, section "foo" 18; CHECK: @section.var = global i32 1, section "foo" 19 20@align.var = global i64 undef, align 8 21; CHECK: @align.var = global i64 undef, align 8 22 23@unnamed_addr.var = unnamed_addr global i8 1 24; CHECK: @unnamed_addr.var = unnamed_addr global i8 1 25 26@default_addrspace.var = addrspace(0) global i8 1 27; CHECK: @default_addrspace.var = global i8 1 28 29@non_default_addrspace.var = addrspace(1) global i8* undef 30; CHECK: @non_default_addrspace.var = addrspace(1) global i8* undef 31 32@initialexec.var = thread_local(initialexec) global i32 0, align 4 33; CHECK: @initialexec.var = thread_local(initialexec) global i32 0, align 4 34 35@localdynamic.var = thread_local(localdynamic) constant i32 0, align 4 36; CHECK: @localdynamic.var = thread_local(localdynamic) constant i32 0, align 4 37 38@localexec.var = thread_local(localexec) constant i32 0, align 4 39; CHECK: @localexec.var = thread_local(localexec) constant i32 0, align 4 40 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" 43