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

9 lines
273 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() {
core::panic!("panicking from libcore");
}