projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
New temporary option -new-cc-modeling-scheme to test the new cc modeling scheme.
[oota-llvm.git]
/
test
/
Linker
/
2003-04-21-Linkage.ll
1
; RUN: echo {@X = linkonce global i32 5 \
2
; RUN: define linkonce i32 @foo() \{ ret i32 7 \} } | llvm-as > %t.1.bc
3
; RUN: llvm-as < %s -o %t.2.bc -f
4
; RUN: llvm-link %t.1.bc %t.2.bc
5
@X = external global i32
6
7
declare i32 @foo()
8
9
define void @bar() {
10
load i32* @X
11
call i32 @foo()
12
ret void
13
}
14