rust/tests/ui/cfg/cfg-panic-abort.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
218 B
Rust
Raw Normal View History

2020-07-25 13:02:49 -05:00
//@ build-pass
//@ compile-flags: -C panic=abort
//@ no-prefer-dynamic
2020-07-25 13:02:49 -05:00
#[cfg(panic = "unwind")]
pub fn bad() -> i32 { }
#[cfg(not(panic = "abort"))]
pub fn bad() -> i32 { }
#[cfg(panic = "abort")]
pub fn main() { }