2001-09-10 15:58:01 +08:00
|
|
|
|
2001-09-18 12:38:50 +08:00
|
|
|
%MyVar = uninitialized global int
|
|
|
|
%MyIntList = uninitialized global { \2 *, int }
|
|
|
|
uninitialized global int ; int*:0
|
|
|
|
|
|
|
|
%AConst = constant int 123
|
2001-09-10 15:58:01 +08:00
|
|
|
|
2001-10-15 07:13:45 +08:00
|
|
|
%AString = constant [4 x ubyte] c"test"
|
|
|
|
|
2001-09-10 15:58:01 +08:00
|
|
|
implementation
|
|
|
|
|
|
|
|
int "foo"(int %blah)
|
|
|
|
begin
|
|
|
|
store int 5, int *%MyVar
|
2001-12-15 00:46:53 +08:00
|
|
|
store int 12, { \2 *, int } * %MyIntList, uint 0, ubyte 1
|
2001-10-15 07:13:45 +08:00
|
|
|
ret int %blah
|
2001-09-10 15:58:01 +08:00
|
|
|
end
|
|
|
|
|