about summary refs log tree commit diff
path: root/tests/run-make/native-lib-load-order/rmake.rs
blob: ffe20a64168f8f74f2d8a9ff152f5ae99b834ada (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// An old compiler bug from 2015 caused native libraries to be loaded in the
// wrong order, causing `b` to be loaded before `a` in this test. If the compilation
// is successful, the libraries were loaded in the correct order.

//@ ignore-cross-compile
// Reason: the compiled binary is executed

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

fn main() {
    build_native_static_lib("a");
    build_native_static_lib("b");
    rustc().input("a.rs").run();
    rustc().input("b.rs").run();
    run("b");
}