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

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

%AConst    = constant int 123

implementation

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