blob: 31aace8e44c4b62b566077bfb5904552f30281d2 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: echo {@X = linkonce global i32 5 \
2; RUN: define linkonce i32 @foo() \{ ret i32 7 \} } | llvm-as > %t.1.bc
Gabor Greifafb4e8c2008-05-20 22:07:21 +00003; RUN: llvm-as %s -o %t.2.bc -f
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004; RUN: llvm-link %t.1.bc %t.2.bc
5@X = external global i32
6
7declare i32 @foo()
8
9define void @bar() {
10 load i32* @X
11 call i32 @foo()
12 ret void
13}
14