summaryrefslogtreecommitdiffstats
path: root/tests/run-make/invalid-staticlib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/invalid-staticlib/Makefile')
-rw-r--r--tests/run-make/invalid-staticlib/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/run-make/invalid-staticlib/Makefile b/tests/run-make/invalid-staticlib/Makefile
new file mode 100644
index 000000000..3f0f74ce3
--- /dev/null
+++ b/tests/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 | $(CGREP) "failed to add native library"