1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-28 22:42:52 +01:00
llvm-mirror/test/Regression/Linker/2003-04-21-Linkage.ll
Chris Lattner ee4c6dca22 New testcase
llvm-svn: 5826
2003-04-21 21:06:25 +00:00

16 lines
298 B
LLVM

; RUN: echo "%X = linkonce global int 5 implementation linkonce int %foo() { ret int 7 }" | as > Output/%s.1.bc
; RUN: as < %s > Output/%s.2.bc
; RUN: link Output/%s.[12].bc
%X = external global int
implementation
declare int %foo()
void %bar() {
load int* %X
call int %foo()
ret void
}