summaryrefslogtreecommitdiff
path: root/test/Linker/2002-07-17-LinkTest2.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Linker/2002-07-17-LinkTest2.ll')
-rw-r--r--test/Linker/2002-07-17-LinkTest2.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Linker/2002-07-17-LinkTest2.ll b/test/Linker/2002-07-17-LinkTest2.ll
new file mode 100644
index 0000000000..322f38034f
--- /dev/null
+++ b/test/Linker/2002-07-17-LinkTest2.ll
@@ -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)