Refactor code just a little bit, allowing us to implement TailCallElim/return_constant.ll
[oota-llvm.git] / test / Linker / testlink2.ll
index f119618a902ab27c63295878672c4abb996764ac..31a29eb52d1a11e97f481b54ce1cd69acdaba56b 100644 (file)
@@ -3,7 +3,7 @@
 ; RUN: echo
 
 %MyVar     = global int 4
-%MyIntList = uninitialized global { \2 *, int }
+%MyIntList = external global { \2 *, int }
 
 %AConst    = constant int 123
 
@@ -11,7 +11,7 @@
 %Intern2   = constant int 12345       ;; Intern in one but not in other
 
 %MyIntListPtr = constant { {\2,int}* } { {\2,int}* %MyIntList }
-%MyVarPtr  = global { int * }  { int * %MyVar }
+%MyVarPtr  = linkonce global { int * }  { int * %MyVar }
 
 constant int 412
 
@@ -20,7 +20,7 @@ implementation
 int "foo"(int %blah)
 begin
        store int %blah, int *%MyVar
-       %idx = getelementptr { \2 *, int } * %MyIntList, uint 0, ubyte 1
+       %idx = getelementptr { \2 *, int } * %MyIntList, long 0, ubyte 1
        store int 12, int* %idx
 
        %ack = load int * %0   ;; Load from the unnamed constant