mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
17 lines
295 B
Rust
17 lines
295 B
Rust
//@ build-pass
|
|
//@ compile-flags: -C panic=unwind
|
|
//@ needs-unwind
|
|
|
|
|
|
#[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() { }
|