diff options
author | Chris Lattner <sabre@nondot.org> | 2003-04-16 21:21:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-04-16 21:21:35 +0000 |
commit | 25219a76fe86ebc09104b0ed5404883fee00e0f0 (patch) | |
tree | 0d314ac86863c6c5d241416ac32020abb1443ce8 /test/Linker | |
parent | e3869c83e7f3abba5708110f8ac0d69e98927b96 (diff) | |
download | external_llvm-25219a76fe86ebc09104b0ed5404883fee00e0f0.zip external_llvm-25219a76fe86ebc09104b0ed5404883fee00e0f0.tar.gz external_llvm-25219a76fe86ebc09104b0ed5404883fee00e0f0.tar.bz2 |
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')
-rw-r--r-- | test/Linker/LinkOnce.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Linker/LinkOnce.ll b/test/Linker/LinkOnce.ll new file mode 100644 index 0000000..01ec986 --- /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 |