2022-07-05 09:15:22 +00:00
|
|
|
//@error-pattern: the program aborted execution
|
|
|
|
//@normalize-stderr-test: "\| +\^+" -> "| ^"
|
|
|
|
//@normalize-stderr-test: "libc::abort\(\);|core::intrinsics::abort\(\);" -> "ABORT();"
|
|
|
|
//@compile-flags: -C panic=abort
|
2017-02-09 10:59:42 +01:00
|
|
|
|
|
|
|
fn main() {
|
2019-02-06 11:39:16 +01:00
|
|
|
core::panic!("{}-panicking from libcore", 42);
|
2017-02-09 10:59:42 +01:00
|
|
|
}
|