2008-03-10 15:21:50 +08:00
|
|
|
; RUN: llvm-as < %s > %t.bc
|
2014-11-25 04:35:59 +08:00
|
|
|
; RUN: llvm-as < %p/testlink.ll > %t2.bc
|
2009-08-25 23:38:29 +08:00
|
|
|
; RUN: llvm-link %t.bc %t.bc %t2.bc -o %t1.bc
|
2013-04-10 00:51:13 +08:00
|
|
|
; RUN: llvm-dis < %t1.bc | FileCheck %s
|
|
|
|
; CHECK: kallsyms_names = extern_weak
|
|
|
|
; CHECK: Inte = global i32
|
|
|
|
; CHECK: MyVar = external global i32
|
2006-12-16 01:34:37 +08:00
|
|
|
|
2008-03-10 15:21:50 +08:00
|
|
|
@kallsyms_names = extern_weak global [0 x i8] ; <[0 x i8]*> [#uses=0]
|
|
|
|
@MyVar = extern_weak global i32 ; <i32*> [#uses=0]
|
|
|
|
@Inte = extern_weak global i32 ; <i32*> [#uses=0]
|
2006-12-16 01:34:37 +08:00
|
|
|
|