summaryrefslogtreecommitdiffstats
path: root/tests/run-make/prune-link-args
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/prune-link-args')
-rw-r--r--tests/run-make/prune-link-args/Makefile10
-rw-r--r--tests/run-make/prune-link-args/empty.rs1
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/run-make/prune-link-args/Makefile b/tests/run-make/prune-link-args/Makefile
new file mode 100644
index 000000000..c21ba6ace
--- /dev/null
+++ b/tests/run-make/prune-link-args/Makefile
@@ -0,0 +1,10 @@
+# ignore-cross-compile
+include ../tools.mk
+
+# ignore-windows
+
+# Notice the space in the end, this emulates the output of pkg-config
+RUSTC_FLAGS = -C link-args="-lc "
+
+all:
+ $(RUSTC) $(RUSTC_FLAGS) empty.rs
diff --git a/tests/run-make/prune-link-args/empty.rs b/tests/run-make/prune-link-args/empty.rs
new file mode 100644
index 000000000..45590d86b
--- /dev/null
+++ b/tests/run-make/prune-link-args/empty.rs
@@ -0,0 +1 @@
+fn main() { }