From: Chris Lattner Date: Wed, 16 Apr 2003 21:21:35 +0000 (+0000) Subject: Add tests for linker and linkonce globals X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=25219a76fe86ebc09104b0ed5404883fee00e0f0;p=oota-llvm.git Add tests for linker and linkonce globals git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5791 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Linker/LinkOnce.ll b/test/Linker/LinkOnce.ll new file mode 100644 index 00000000000..01ec9862ab6 --- /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