summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-02 02:46:29 +0000
committerChris Lattner <sabre@nondot.org>2005-01-02 02:46:29 +0000
commit252b68cfc874bf770a5224dde0b19d2cc19ea2d6 (patch)
treeb6c73e0729f70ff5a19e60317784b6219fbec8a9 /llvm
parente7228736e0c452f4faf7b71825bba5909823d5ee (diff)
downloadbcm5719-llvm-252b68cfc874bf770a5224dde0b19d2cc19ea2d6.tar.gz
bcm5719-llvm-252b68cfc874bf770a5224dde0b19d2cc19ea2d6.zip
Check in an old test that never made it into CVS
llvm-svn: 19250
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/Regression/Linker/2004-12-03-DisagreeingType.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/Regression/Linker/2004-12-03-DisagreeingType.ll b/llvm/test/Regression/Linker/2004-12-03-DisagreeingType.ll
new file mode 100644
index 00000000000..9849e0c1fe5
--- /dev/null
+++ b/llvm/test/Regression/Linker/2004-12-03-DisagreeingType.ll
@@ -0,0 +1,8 @@
+; RUN: echo "%G = weak global {{{{double}}}} zeroinitializer" | llvm-as > %t.out2.bc
+; RUN: llvm-as < %s > %t.out1.bc
+; RUN: llvm-link %t.out[12].bc | llvm-dis | not grep '\}'
+
+; When linked, the global above should be eliminated, being merged with the
+; global below.
+
+%G = global double 1.0
OpenPOWER on IntegriCloud