about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2016-09-19 15:21:32 -0500
committerJorge Aparicio <japaricious@gmail.com>2016-09-19 15:21:32 -0500
commit2f71fa7150f9d6d9292b0a2c5f2beaf43d2058d3 (patch)
treec8f5a7e6151dce49b945c5dbe70f2e7e4b1597d4
parent9631e9f9b3ffcf98b2654eeee8c4dd5f3a2ca50c (diff)
downloadrust-2f71fa7150f9d6d9292b0a2c5f2beaf43d2058d3.tar.gz
rust-2f71fa7150f9d6d9292b0a2c5f2beaf43d2058d3.zip
add a test
-rw-r--r--src/test/run-make/link-arg/Makefile5
-rw-r--r--src/test/run-make/link-arg/empty.rs11
2 files changed, 16 insertions, 0 deletions
diff --git a/src/test/run-make/link-arg/Makefile b/src/test/run-make/link-arg/Makefile
new file mode 100644
index 00000000000..0ee239af0fa
--- /dev/null
+++ b/src/test/run-make/link-arg/Makefile
@@ -0,0 +1,5 @@
+-include ../tools.mk
+RUSTC_FLAGS = -C link-arg="-lfoo" -C link-arg="-lbar" -Z print-link-args
+
+all:
+	$(RUSTC) $(RUSTC_FLAGS) empty.rs | grep lfoo | grep lbar
diff --git a/src/test/run-make/link-arg/empty.rs b/src/test/run-make/link-arg/empty.rs
new file mode 100644
index 00000000000..2b76fb24e5f
--- /dev/null
+++ b/src/test/run-make/link-arg/empty.rs
@@ -0,0 +1,11 @@
+// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+fn main() { }