1; RUN: llvm-link %s %s %p/testlink.ll -S | FileCheck %s
2; CHECK: kallsyms_names = extern_weak
3; CHECK: Inte = global i32
4; CHECK: MyVar = external global i32
5
6@kallsyms_names = extern_weak global [0 x i8]
7@MyVar = extern_weak global i32
8@Inte = extern_weak global i32
9
10define weak [0 x i8]* @use_kallsyms_names() {
11  ret [0 x i8]* @kallsyms_names
12}
13