about summary refs log tree commit diff
path: root/tests/ui/cfg/cfg-panic.rs
blob: 4e3ed0cd9c2f8352afe9c3b53820b40329600156 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ 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 = "unwind")]
pub fn main() { }