blob: 3853b598a7a799aaede4c32e01e06b2b33978653 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// build-pass
// compile-flags: -C panic=abort
// no-prefer-dynamic
#[cfg(panic = "unwind")]
pub fn bad() -> i32 { }
#[cfg(not(panic = "abort"))]
pub fn bad() -> i32 { }
#[cfg(panic = "some_imaginary_future_panic_handler")]
pub fn bad() -> i32 { }
#[cfg(panic = "abort")]
pub fn main() { }
|