]> git.lizzy.rs Git - rust.git/blob - src/test/run-make-fulldeps/no-duplicate-libs/main.rs
Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup
[rust.git] / src / test / run-make-fulldeps / no-duplicate-libs / main.rs
1 #[link(name = "foo")] // linker should drop this library, no symbols used
2 #[link(name = "bar")] // symbol comes from this library
3 #[link(name = "foo")] // now linker picks up `foo` b/c `bar` library needs it
4 extern "C" {
5     fn bar();
6 }
7
8 fn main() {
9     unsafe { bar() }
10 }