blob: 58493f9ecebcb6e2cf4f3017aac6b18fccbd64d0 [file] [log] [blame]
Chris Lattner17ae1472003-04-21 21:06:25 +00001; RUN: echo "%X = linkonce global int 5 implementation linkonce int %foo() { ret int 7 }" | as > Output/%s.1.bc
2; RUN: as < %s > Output/%s.2.bc
3; RUN: link Output/%s.[12].bc
4%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