blob: a01c20b234d761192c0bca442122ba42fbc875d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
%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
%idx = getelementptr { \2 *, int } * %MyIntList, uint 0, ubyte 1
store int 12, int* %idx
ret int %blah
end
|