llvm.org GIT mirror llvm / c8782ad
extern_weak link test git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32602 91177308-0d34-0410-b5e6-96231b3b80d8 Andrew Lenharth 13 years ago
2 changed file(s) with 15 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
44 %MyVar = external global int
55 %MyIntList = global { \2 *, int } { { \2, int }* null, int 17 }
66 external global int ; int*:0
7
8 %Inte = global int 1
79
810 %AConst = linkonce constant int 123
911
0 ; RUN: llvm-as < %s > %t.bc
1 ; RUN: llvm-as < `dirname %s`/testlink1.ll > %t2.bc
2 ; RUN: llvm-link %t.bc %t.bc %t2.bc -o %t1.bc
3 ; RUN: llvm-dis < %t1.bc |grep "kallsyms_names = extern_weak" &&
4 ; RUN: llvm-dis < %t1.bc |grep "MyVar = external global int" &&
5 ; RUN: llvm-dis < %t1.bc |grep "Inte = global int"
6
7 %kallsyms_names = extern_weak global [0 x ubyte]
8 %MyVar = extern_weak global int
9 %Inte = extern_weak global int
10
11 implementation
12