; RUN: llvm-as < %s > %t.bc
; RUN: llvm-as < `dirname %s`/testlink1.ll > %t2.bc
; RUN: llvm-link %t.bc %t.bc %t2.bc -o %t1.bc
; RUN: llvm-dis < %t1.bc |grep "kallsyms_names = extern_weak" &&
; RUN: llvm-dis < %t1.bc |grep "MyVar = external global int" &&
; RUN: llvm-dis < %t1.bc |grep "Inte = global int"

%kallsyms_names = extern_weak global [0 x ubyte]
%MyVar     = extern_weak global int
%Inte = extern_weak global int

implementation


; RUN: llvm-as < %s > %t.bc
; RUN: llvm-as < `dirname %s`/testlink1.ll > %t2.bc
; RUN: llvm-link %t.bc %t.bc %t2.bc -o %t1.bc -f
; RUN: llvm-dis < %t1.bc |grep "kallsyms_names = extern_weak" &&
; RUN: llvm-dis < %t1.bc |grep "MyVar = external global int" &&
; RUN: llvm-dis < %t1.bc |grep "Inte = global int"

%kallsyms_names = extern_weak global [0 x ubyte]
%MyVar     = extern_weak global int
%Inte = extern_weak global int

implementation

Make sure linker output is overwritten so this test can pass multiple times.
Make sure linker output is overwritten so this test can pass multiple times.


git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@32675 91177308-0d34-0410-b5e6-96231b3b80d8
