Added the CXXTest test class.
[oota-llvm.git] / test / Linker / testlink1.ll
index 35b6eeb6f6493f00b2b2692f3366153eedb9c595..54172390031f0eaa7c86a7a7161692e486b756c0 100644 (file)
@@ -1,10 +1,10 @@
-; RUN: as < %s > Output/%s.bc
-; RUN: as < testlink2.ll > Output/testlink2.bc
-; RUN: link Output/%s.bc Output/testlink2.bc
+; RUN: llvm-as < %s > %t.bc
+; RUN: llvm-as < `dirname %s`/testlink2.ll > %t2.bc
+; RUN: llvm-link %t.bc %t2.bc
 
-%MyVar     = uninitialized global int
+%MyVar     = external global int
 %MyIntList = global { \2 *, int } { { \2, int }* null, int 17 }
-             uninitialized global int      ; int*:0
+             external global int      ; int*:0
 
 %AConst    = constant int 123
 
@@ -12,7 +12,7 @@
 %Intern2   = internal constant int 792
 
 ; Initialized to point to external %MyVar
-%MyVarPtr  = global { int * }  { int * %MyVar }
+%MyVarPtr  = linkonce global { int * }  { int * %MyVar }
 
 declare int "foo"(int %blah)      ;; Declared in testlink2.ll
 
@@ -25,7 +25,7 @@ begin
        %v1 = load int* %MyVar
        call void %print(int %v1)    ;; Should start out 4
 
-       %idx = getelementptr { \2 *, int }* %MyIntList, uint 0, ubyte 1
+       %idx = getelementptr { \2 *, int }* %MyIntList, long 0, ubyte 1
        %v2 = load int* %idx
        call void %print(int %v2)    ;; Should start out 17