mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-30 08:44:48 +00:00
extern_weak link test
llvm-svn: 32602
This commit is contained in:
parent
b07d89090c
commit
1898131d04
@ -6,6 +6,8 @@
|
||||
%MyIntList = global { \2 *, int } { { \2, int }* null, int 17 }
|
||||
external global int ; int*:0
|
||||
|
||||
%Inte = global int 1
|
||||
|
||||
%AConst = linkonce constant int 123
|
||||
|
||||
%Intern1 = internal constant int 42
|
||||
|
13
test/Regression/Linker/weakextern.ll
Normal file
13
test/Regression/Linker/weakextern.ll
Normal file
@ -0,0 +1,13 @@
|
||||
; RUN: llvm-as < %s > %t.bc
|
||||
; RUN: llvm-as < `dirname %s`/testlink1.ll > %t2.bc
|
||||
; RUN: llvm-link %t.bc %t.bc %t2.bc -o %t1.bc
|
||||
; RUN: llvm-dis < %t1.bc |grep "kallsyms_names = extern_weak" &&
|
||||
; RUN: llvm-dis < %t1.bc |grep "MyVar = external global int" &&
|
||||
; RUN: llvm-dis < %t1.bc |grep "Inte = global int"
|
||||
|
||||
%kallsyms_names = extern_weak global [0 x ubyte]
|
||||
%MyVar = extern_weak global int
|
||||
%Inte = extern_weak global int
|
||||
|
||||
implementation
|
||||
|
Loading…
x
Reference in New Issue
Block a user