blob: 6071d0b39498223198633f39c9bddba6a0f88098 [file] [log] [blame]
Misha Brukmanb6cb66f2003-09-15 20:04:28 +00001; RUN: echo "%X = linkonce global int 5 implementation linkonce int %foo() { ret int 7 }" | llvm-as > %t.1.bc
2; RUN: llvm-as < %s > %t.2.bc
3; RUN: llvm-link %t.[12].bc
Chris Lattner8869c2c2003-04-21 21:06:25 +00004%X = external global int
5
6implementation
7
8declare int %foo()
9
10void %bar() {
11 load int* %X
12 call int %foo()
13 ret void
14}
15