2006-12-31 07:02:00 +01:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as > %t.bc
|
|
|
|
; RUN: llvm-upgrade < `dirname %s`/testlink1.ll | llvm-as > %t2.bc
|
2006-12-19 20:29:50 +01:00
|
|
|
; RUN: llvm-link %t.bc %t.bc %t2.bc -o %t1.bc -f
|
2007-01-05 19:37:18 +01:00
|
|
|
; RUN: llvm-dis < %t1.bc | grep "kallsyms_names = extern_weak" &&
|
|
|
|
; RUN: llvm-dis < %t1.bc | grep "MyVar = external global i32" &&
|
|
|
|
; RUN: llvm-dis < %t1.bc | grep "Inte = global i32"
|
2006-12-15 18:34:37 +01:00
|
|
|
|
|
|
|
%kallsyms_names = extern_weak global [0 x ubyte]
|
|
|
|
%MyVar = extern_weak global int
|
|
|
|
%Inte = extern_weak global int
|
|
|
|
|
|
|
|
implementation
|