mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
3ba0139c66
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
218 B
Rust
13 lines
218 B
Rust
//@ 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 = "abort")]
|
|
pub fn main() { }
|