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
This commit is contained in:
Chris Lattner 2001-10-15 03:11:58 +00:00
parent 6bb46cdf27
commit 230e5efe63
2 changed files with 9 additions and 4 deletions

View File

@ -5,6 +5,9 @@
%AConst = constant int 123
; Initialized to point to external %MyVar
%MyVarPtr = global { int * } { int * %MyVar }
declare int "foo"(int %blah) ;; Declared in testlink2.ll
declare void "print"(int %Value)

View File

@ -4,6 +4,9 @@
%AConst = constant int 123
%MyIntListPtr = constant { {\2,int}* } { {\2,int}* %MyIntList }
%MyVarPtr = global { int * } { int * %MyVar }
constant int 412
implementation
@ -13,10 +16,9 @@ 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
ret int %blah
%ack = load int * %0 ;; Load from the unnamed constant
%fzo = add int %ack, %blah
ret int %fzo
end
declare void "unimp"(float, double)