summaryrefslogtreecommitdiffstats
path: root/tests/run-make/link-arg
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/link-arg')
-rw-r--r--tests/run-make/link-arg/Makefile5
-rw-r--r--tests/run-make/link-arg/empty.rs1
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/run-make/link-arg/Makefile b/tests/run-make/link-arg/Makefile
new file mode 100644
index 000000000..103527c3e
--- /dev/null
+++ b/tests/run-make/link-arg/Makefile
@@ -0,0 +1,5 @@
+include ../tools.mk
+RUSTC_FLAGS = -C link-arg="-lfoo" -C link-arg="-lbar" --print link-args
+
+all:
+ $(RUSTC) $(RUSTC_FLAGS) empty.rs | $(CGREP) lfoo lbar
diff --git a/tests/run-make/link-arg/empty.rs b/tests/run-make/link-arg/empty.rs
new file mode 100644
index 000000000..45590d86b
--- /dev/null
+++ b/tests/run-make/link-arg/empty.rs
@@ -0,0 +1 @@
+fn main() { }