2020-12-10 19:53:45 +01:00
|
|
|
// error-pattern: the program aborted execution
|
2022-05-31 19:00:14 -04:00
|
|
|
// normalize-stderr-test: "\| +\^+" -> "| ^"
|
|
|
|
// normalize-stderr-test: "libc::abort\(\);|core::intrinsics::abort\(\);" -> "ABORT();"
|
2019-04-14 21:02:55 -04:00
|
|
|
// compile-flags: -C panic=abort
|
2017-02-09 10:59:42 +01:00
|
|
|
|
|
|
|
fn main() {
|
2019-02-06 11:39:16 +01:00
|
|
|
std::panic!("{}-panicking from libstd", 42);
|
2017-02-09 10:59:42 +01:00
|
|
|
}
|