mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-18 18:04:13 +00:00

Since they are never set and don't have impact on the test. Or for the cfg-panic tests are already tested with check-cfg.
13 lines
215 B
Rust
13 lines
215 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 = "unwind")]
|
|
pub fn main() { }
|