Add some more interesting test cases for the linker
llvm-svn: 816
diff --git a/llvm/test/Regression/Linker/testlink2.ll b/llvm/test/Regression/Linker/testlink2.ll
index df8d85b..77d62f2 100644
--- a/llvm/test/Regression/Linker/testlink2.ll
+++ b/llvm/test/Regression/Linker/testlink2.ll
@@ -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 @@
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)