2015-12-04 03:10:55 +08:00
|
|
|
; RUN: llvm-link %s %s %p/testlink.ll -S | FileCheck %s
|
2013-04-10 00:51:13 +08:00
|
|
|
; CHECK: kallsyms_names = extern_weak
|
|
|
|
; CHECK: Inte = global i32
|
|
|
|
; CHECK: MyVar = external global i32
|
2006-12-16 01:34:37 +08:00
|
|
|
|
2015-12-04 03:10:55 +08:00
|
|
|
@kallsyms_names = extern_weak global [0 x i8]
|
|
|
|
@MyVar = extern_weak global i32
|
|
|
|
@Inte = extern_weak global i32
|
2015-12-08 00:31:41 +08:00
|
|
|
|
|
|
|
define weak [0 x i8]* @use_kallsyms_names() {
|
|
|
|
ret [0 x i8]* @kallsyms_names
|
|
|
|
}
|