summaryrefslogtreecommitdiff
path: root/test/Linker/LinkOnce.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-04-16 21:21:35 +0000
committerChris Lattner <sabre@nondot.org>2003-04-16 21:21:35 +0000
commit25219a76fe86ebc09104b0ed5404883fee00e0f0 (patch)
tree0d314ac86863c6c5d241416ac32020abb1443ce8 /test/Linker/LinkOnce.ll
parente3869c83e7f3abba5708110f8ac0d69e98927b96 (diff)
downloadllvm-25219a76fe86ebc09104b0ed5404883fee00e0f0.tar.gz
llvm-25219a76fe86ebc09104b0ed5404883fee00e0f0.tar.bz2
llvm-25219a76fe86ebc09104b0ed5404883fee00e0f0.tar.xz
Add tests for linker and linkonce globals
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5791 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Linker/LinkOnce.ll')
-rw-r--r--test/Linker/LinkOnce.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Linker/LinkOnce.ll b/test/Linker/LinkOnce.ll
new file mode 100644
index 0000000000..01ec9862ab
--- /dev/null
+++ b/test/Linker/LinkOnce.ll
@@ -0,0 +1,8 @@
+; This fails because the linker renames the non-opaque type not the opaque
+; one...
+
+; RUN: echo "%X = linkonce global int 8" | as > Output/%s.2.bc
+; RUN: as < %s > Output/%s.1.bc
+; RUN: link Output/%s.[12].bc | dis
+
+%X = linkonce global int 7