aboutsummaryrefslogtreecommitdiffstats
path: root/test/Feature/globalvars.ll
blob: 3914efc3e4216368406ec805d75ec19643908190 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

%MyVar     = uninitialized global int
%MyIntList = uninitialized global { \2 *, int }
             uninitialized global int      ; int*:0

%AConst    = constant int 123

%AString   = constant [4 x ubyte] c"test"

implementation

int "foo"(int %blah)
begin
	store int 5, int *%MyVar
  	store int 12, { \2 *, int } * %MyIntList, ubyte 1
  	ret int %blah
end