-; 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 = external global int
%MyIntList = global { \2 *, int } { { \2, int }* null, int 17 }
%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