diff options
Diffstat (limited to 'test/Linker/2003-04-21-Linkage.ll')
-rw-r--r-- | test/Linker/2003-04-21-Linkage.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Linker/2003-04-21-Linkage.ll b/test/Linker/2003-04-21-Linkage.ll new file mode 100644 index 0000000000..58493f9ece --- /dev/null +++ b/test/Linker/2003-04-21-Linkage.ll @@ -0,0 +1,15 @@ +; RUN: echo "%X = linkonce global int 5 implementation linkonce int %foo() { ret int 7 }" | as > Output/%s.1.bc +; RUN: as < %s > Output/%s.2.bc +; RUN: link Output/%s.[12].bc +%X = external global int + +implementation + +declare int %foo() + +void %bar() { + load int* %X + call int %foo() + ret void +} + |