blob: f6d4c4b03b7ff62b1d37a416fe774d17b146cfa9 [file] [log] [blame]
Reid Spenceredca80b2007-04-15 18:11:57 +00001; RUN: echo {@X = linkonce global i32 5 \
2; RUN: define linkonce i32 @foo() \{ ret i32 7 \} } | llvm-as > %t.1.bc
Dan Gohmanfea1dd02009-08-25 15:38:29 +00003; RUN: llvm-as %s -o %t.2.bc
Reid Spenceredca80b2007-04-15 18:11:57 +00004; RUN: llvm-link %t.1.bc %t.2.bc
5@X = external global i32
Chris Lattner8869c2c2003-04-21 21:06:25 +00006
Reid Spenceredca80b2007-04-15 18:11:57 +00007declare i32 @foo()
Chris Lattner8869c2c2003-04-21 21:06:25 +00008
Reid Spenceredca80b2007-04-15 18:11:57 +00009define void @bar() {
10 load i32* @X
11 call i32 @foo()
Chris Lattner8869c2c2003-04-21 21:06:25 +000012 ret void
13}
14