about summary refs log tree commit diff
path: root/tests/run-make/link-native-static-lib-to-dylib/rmake.rs
blob: 0746c3963143b245451ac82bdfcac403ed6d35f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Regression test for <https://github.com/rust-lang/rust/issues/15460>.

//@ ignore-cross-compile

use run_make_support::{build_native_static_lib, run, rustc};

fn main() {
    build_native_static_lib("foo");

    rustc().input("foo.rs").extra_filename("-383hf8").arg("-Cprefer-dynamic").run();
    rustc().input("bar.rs").run();

    run("bar");
}