Add some more interesting test cases for the linker
[oota-llvm.git] / test / Linker / testlink2.ll
1
2 %MyVar     = global int 4
3 %MyIntList = uninitialized global { \2 *, int }
4
5 %AConst    = constant int 123
6
7 %MyIntListPtr = constant { {\2,int}* } { {\2,int}* %MyIntList }
8 %MyVarPtr  = global { int * }  { int * %MyVar }
9
10 constant int 412
11
12 implementation
13
14 int "foo"(int %blah)
15 begin
16         store int %blah, int *%MyVar
17         store int 12, { \2 *, int } * %MyIntList, ubyte 1
18
19         %ack = load int * %0   ;; Load from the unnamed constant
20         %fzo = add int %ack, %blah
21         ret int %fzo
22 end
23
24 declare void "unimp"(float, double)