rust/tests/compile-fail/panic/panic_abort2.rs
2020-09-18 13:10:18 +02:00

8 lines
217 B
Rust

// error-pattern: the evaluated program aborted execution
// compile-flags: -C panic=abort
// ignore-windows: windows panics via inline assembly (FIXME)
fn main() {
std::panic!("{}-panicking from libstd", 42);
}