| Chris Lattner | 17ae147 | 2003-04-21 21:06:25 +0000 | [diff] [blame^] | 1 | ; 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 | |||||
| 6 | implementation | ||||
| 7 | |||||
| 8 | declare int %foo() | ||||
| 9 | |||||
| 10 | void %bar() { | ||||
| 11 | load int* %X | ||||
| 12 | call int %foo() | ||||
| 13 | ret void | ||||
| 14 | } | ||||
| 15 | |||||