TEstcases for old bugs
authorChris Lattner <sabre@nondot.org>
Tue, 23 Jul 2002 18:26:48 +0000 (18:26 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 23 Jul 2002 18:26:48 +0000 (18:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3024 91177308-0d34-0410-b5e6-96231b3b80d8

test/Linker/2002-07-17-GlobalFail.ll [new file with mode: 0644]
test/Linker/2002-07-17-LinkTest2.ll [new file with mode: 0644]

diff --git a/test/Linker/2002-07-17-GlobalFail.ll b/test/Linker/2002-07-17-GlobalFail.ll
new file mode 100644 (file)
index 0000000..bc12fe9
--- /dev/null
@@ -0,0 +1,8 @@
+; RUN: as < %s > Output/%s.bc
+; RUN: echo | as > Output/%s.tmp.bc
+; RUN: link Output/%s.tmp.bc Output/%s.bc
+
+%X = constant int 5
+%Y = internal global [2 x int*] [ int* %X, int * %X]
+
+
diff --git a/test/Linker/2002-07-17-LinkTest2.ll b/test/Linker/2002-07-17-LinkTest2.ll
new file mode 100644 (file)
index 0000000..322f380
--- /dev/null
@@ -0,0 +1,10 @@
+; This fails linking when it is linked with an empty file as the first object file
+
+; RUN: touch Output/LinkTest1.ll
+; RUN: as Output/LinkTest1.ll
+; RUN: as < %s > Output/LinkTest2.bc
+; RUN: link Output/LinkTest[12].bc
+
+%work = global int (int, int)* %zip
+
+declare int %zip(int, int)