2024-05-17 14:37:16 -05:00
|
|
|
// Defining a crate that provides panic handling as an external crate
|
|
|
|
// could uselessly trigger the "unused external crate" lint. In this test,
|
|
|
|
// if the lint is triggered, it will trip #![deny(unused_extern_crates)],
|
|
|
|
// and cause the test to fail.
|
|
|
|
// See https://github.com/rust-lang/rust/issues/53964
|
|
|
|
|
2024-06-06 14:34:34 -05:00
|
|
|
use run_make_support::rustc;
|
2024-05-17 14:37:16 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
rustc().input("panic.rs").run();
|
2024-06-06 14:34:34 -05:00
|
|
|
rustc().input("app.rs").panic("abort").emit("obj").run();
|
2024-05-17 14:37:16 -05:00
|
|
|
}
|