llvm-6502/test/Linker/testlink2.ll
2001-10-15 03:11:58 +00:00

25 lines
504 B
LLVM

%MyVar = global int 4
%MyIntList = uninitialized global { \2 *, int }
%AConst = constant int 123
%MyIntListPtr = constant { {\2,int}* } { {\2,int}* %MyIntList }
%MyVarPtr = global { int * } { int * %MyVar }
constant int 412
implementation
int "foo"(int %blah)
begin
store int %blah, int *%MyVar
store int 12, { \2 *, int } * %MyIntList, ubyte 1
%ack = load int * %0 ;; Load from the unnamed constant
%fzo = add int %ack, %blah
ret int %fzo
end
declare void "unimp"(float, double)