rust/tests/compile-fail/panic/panic_abort1.rs
2022-05-31 19:00:14 -04:00

9 lines
271 B
Rust

// error-pattern: the program aborted execution
// normalize-stderr-test: "\| +\^+" -> "| ^"
// normalize-stderr-test: "libc::abort\(\);|core::intrinsics::abort\(\);" -> "ABORT();"
// compile-flags: -C panic=abort
fn main() {
std::panic!("panicking from libstd");
}