about summary refs log tree commit diff
path: root/tests/run-make/static-unwinding/rmake.rs
blob: ee3d9a342f9181e519577dc005f18848cd313e80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// During unwinding, an implementation of Drop is possible to clean up resources.
// This test implements drop in both a main function and its static library.
// If the test succeeds, a Rust program being a static library does not affect Drop implementations.
// See https://github.com/rust-lang/rust/issues/10434

//@ ignore-cross-compile
//@ needs-unwind

use run_make_support::{run, rustc};

fn main() {
    rustc().input("lib.rs").run();
    rustc().input("main.rs").run();
    run("main");
}