When removing a function from the function set and adding it to deferred, we
[llvm.git] / test / Integer / globalvars_bt.ll
blob5c43185574d6ea47ae75d7644a19b97022e13a97
1 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
2 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3 ; RUN: diff %t1.ll %t2.ll
7 @MyVar     = external global i27
8 @MyIntList = external global { \2 *, i27 }
9              external global i27      ; i27*:0
11 @AConst    = constant i27 123
13 @AString   = constant [4 x i8] c"test"
15 @ZeroInit  = global { [100 x i27 ], [40 x float ] } { [100 x i27] zeroinitializer,
16                                                       [40  x float] zeroinitializer }
19 define i27 @"foo"(i27 %blah)
20 begin
21         store i27 5, i27 *@MyVar
22         %idx = getelementptr { \2 *, i27 } * @MyIntList, i64 0, i32 1
23         store i27 12, i27* %idx
24         ret i27 %blah
25 end