llvm.org GIT mirror llvm / 230e5ef
Add some more interesting test cases for the linker git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@816 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 18 years ago
2 changed file(s) with 9 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
33 uninitialized global int ; int*:0
44
55 %AConst = constant int 123
6
7 ; Initialized to point to external %MyVar
8 %MyVarPtr = global { int * } { int * %MyVar }
69
710 declare int "foo"(int %blah) ;; Declared in testlink2.ll
811
22 %MyIntList = uninitialized global { \2 *, int }
33
44 %AConst = constant int 123
5
6 %MyIntListPtr = constant { {\2,int}* } { {\2,int}* %MyIntList }
7 %MyVarPtr = global { int * } { int * %MyVar }
58
69 constant int 412
710
1215 store int %blah, int *%MyVar
1316 store int 12, { \2 *, int } * %MyIntList, ubyte 1
1417
15 ;%ack = load int * %0 ;; Load from the unnamed constant
16 ;%fzo = add int %ack, %blah
17 ;ret int %fzo
18 ret int %blah
18 %ack = load int * %0 ;; Load from the unnamed constant
19 %fzo = add int %ack, %blah
20 ret int %fzo
1921 end
2022
2123 declare void "unimp"(float, double)