summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-10-08 18:10:53 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-10-08 18:10:53 +0000
commit79e445253588b43f3a4bb2607901a42d2b91adcd (patch)
treed5090f554f4601cad3521b0b59535e0142328ff1
parent483ad20009f058d5c57641899e4fc850635973b7 (diff)
downloadbcm5719-llvm-79e445253588b43f3a4bb2607901a42d2b91adcd.tar.gz
bcm5719-llvm-79e445253588b43f3a4bb2607901a42d2b91adcd.zip
Test that we handle empty archives.
This was failing before 249709. llvm-svn: 249710
-rw-r--r--lld/test/elf2/empty-archive.s3
1 files changed, 3 insertions, 0 deletions
diff --git a/lld/test/elf2/empty-archive.s b/lld/test/elf2/empty-archive.s
new file mode 100644
index 00000000000..e895a95d06f
--- /dev/null
+++ b/lld/test/elf2/empty-archive.s
@@ -0,0 +1,3 @@
+// RUN: llvm-ar rc %t.a
+// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
+// RUN: ld.lld2 -shared %t.o %t.a -o t
OpenPOWER on IntegriCloud