]> git.lizzy.rs Git - rust.git/commitdiff
add a test
authorJorge Aparicio <japaricious@gmail.com>
Mon, 19 Sep 2016 20:21:32 +0000 (15:21 -0500)
committerJorge Aparicio <japaricious@gmail.com>
Mon, 19 Sep 2016 20:21:32 +0000 (15:21 -0500)
src/test/run-make/link-arg/Makefile [new file with mode: 0644]
src/test/run-make/link-arg/empty.rs [new file with mode: 0644]

diff --git a/src/test/run-make/link-arg/Makefile b/src/test/run-make/link-arg/Makefile
new file mode 100644 (file)
index 0000000..0ee239a
--- /dev/null
@@ -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 (file)
index 0000000..2b76fb2
--- /dev/null
@@ -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() { }