aboutsummaryrefslogtreecommitdiffstats
path: root/test/Feature/globalvars.ll
blob: b243ba58d8ca61e53c89247644ed8dc1929d1d96 (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, uint 0, ubyte 1
  	ret int %blah
end