mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +00:00
extern_weak link test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32602 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
34da72645a
commit
c8782ad4ee
@ -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/Linker/weakextern.ll
Normal file
13
test/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