summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-21 22:46:22 +0000
committerChris Lattner <sabre@nondot.org>2003-10-21 22:46:22 +0000
commit3d6a08d131a77cef94d59637705f1f0afe6e0483 (patch)
tree5bc97d630e0ea5895bab93cc16787357d62cac46 /test
parent46079d2274de38bd08ea7f731726d1a5a1296b75 (diff)
downloadllvm-3d6a08d131a77cef94d59637705f1f0afe6e0483.tar.gz
llvm-3d6a08d131a77cef94d59637705f1f0afe6e0483.tar.bz2
llvm-3d6a08d131a77cef94d59637705f1f0afe6e0483.tar.xz
New testcase. The linker should not consider it an error if two types
disagree. It should grumble, then go ahead and do it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9356 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Linker/2003-10-21-ConflictingTypesTolerance.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Linker/2003-10-21-ConflictingTypesTolerance.ll b/test/Linker/2003-10-21-ConflictingTypesTolerance.ll
new file mode 100644
index 0000000000..afc8f4666d
--- /dev/null
+++ b/test/Linker/2003-10-21-ConflictingTypesTolerance.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-as < %s > %t.out1.bc
+; RUN: echo "%S = type [8 x int] external global %S " | llvm-as > %t.out2.bc
+; RUN: llvm-link %t.out[12].bc | llvm-dis | grep %S | grep '{'
+
+%S = type { int }
+
+