]> git.lizzy.rs Git - rust.git/blob - tests/ui/cfg/cfg-panic.rs
Rollup merge of #106715 - BoxyUwU:new_solver_triagebot, r=lcnr
[rust.git] / tests / ui / cfg / cfg-panic.rs
1 // build-pass
2 // compile-flags: -C panic=unwind
3 // needs-unwind
4
5
6 #[cfg(panic = "abort")]
7 pub fn bad() -> i32 { }
8
9 #[cfg(not(panic = "unwind"))]
10 pub fn bad() -> i32 { }
11
12 #[cfg(panic = "some_imaginary_future_panic_handler")]
13 pub fn bad() -> i32 { }
14
15 #[cfg(panic = "unwind")]
16 pub fn main() { }