diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2016-09-19 15:21:32 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2016-09-19 15:21:32 -0500 |
| commit | 2f71fa7150f9d6d9292b0a2c5f2beaf43d2058d3 (patch) | |
| tree | c8f5a7e6151dce49b945c5dbe70f2e7e4b1597d4 | |
| parent | 9631e9f9b3ffcf98b2654eeee8c4dd5f3a2ca50c (diff) | |
| download | rust-2f71fa7150f9d6d9292b0a2c5f2beaf43d2058d3.tar.gz rust-2f71fa7150f9d6d9292b0a2c5f2beaf43d2058d3.zip | |
add a test
| -rw-r--r-- | src/test/run-make/link-arg/Makefile | 5 | ||||
| -rw-r--r-- | src/test/run-make/link-arg/empty.rs | 11 |
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() { } |
