about summary refs log tree commit diff
path: root/src/test/run-make/invalid-staticlib
diff options
context:
space:
mode:
authorWilliam Throwe <wtt6@cornell.edu>2015-09-25 00:46:33 -0400
committerWilliam Throwe <wtt6@cornell.edu>2015-09-26 01:54:12 -0400
commiteef6030c9245a63abb2102425f65b97b35b33568 (patch)
treef8e574990e252712f781945c22e4e6584daccff8 /src/test/run-make/invalid-staticlib
parent8fe79bdfdacb2f5914971bd1a0b63b9577afbf6a (diff)
downloadrust-eef6030c9245a63abb2102425f65b97b35b33568.tar.gz
rust-eef6030c9245a63abb2102425f65b97b35b33568.zip
Don't ICE if an archive isn't actually an archive
Diffstat (limited to 'src/test/run-make/invalid-staticlib')
-rw-r--r--src/test/run-make/invalid-staticlib/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/run-make/invalid-staticlib/Makefile b/src/test/run-make/invalid-staticlib/Makefile
new file mode 100644
index 00000000000..d4aa6d5e720
--- /dev/null
+++ b/src/test/run-make/invalid-staticlib/Makefile
@@ -0,0 +1,5 @@
+-include ../tools.mk
+
+all:
+	touch $(TMPDIR)/libfoo.a
+	echo | $(RUSTC) - --crate-type=rlib -lstatic=foo 2>&1 | grep "failed to add native library"