blob: ee3d9a342f9181e519577dc005f18848cd313e80 [file] [log] [blame] [edit]
// 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");
}