674341d64b219fa3304e8ea26ddc34abfa5fe3b5
[oota-llvm.git] / test / Feature / globalvars.ll
1
2 %MyVar     = uninitialized global int
3 %MyIntList = uninitialized global { \2 *, int }
4              external global int      ; int*:0
5
6 %AConst    = constant int 123
7
8 %AString   = constant [4 x ubyte] c"test"
9
10 implementation
11
12 int "foo"(int %blah)
13 begin
14         store int 5, int *%MyVar
15         %idx = getelementptr { \2 *, int } * %MyIntList, long 0, ubyte 1
16         store int 12, int* %idx
17         ret int %blah
18 end
19