2020-07-25 13:02:49 -05:00
|
|
|
// build-pass
|
|
|
|
// compile-flags: -C panic=unwind
|
2021-04-29 12:04:16 -05:00
|
|
|
// needs-unwind
|
2022-02-04 11:14:58 -06:00
|
|
|
|
2020-07-25 13:02:49 -05:00
|
|
|
|
|
|
|
#[cfg(panic = "abort")]
|
|
|
|
pub fn bad() -> i32 { }
|
|
|
|
|
|
|
|
#[cfg(not(panic = "unwind"))]
|
|
|
|
pub fn bad() -> i32 { }
|
|
|
|
|
|
|
|
#[cfg(panic = "some_imaginary_future_panic_handler")]
|
|
|
|
pub fn bad() -> i32 { }
|
|
|
|
|
|
|
|
#[cfg(panic = "unwind")]
|
|
|
|
pub fn main() { }
|