mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-25 06:47:36 +00:00
14 lines
243 B
Rust
14 lines
243 B
Rust
//@ build-pass
|
|
//@ compile-flags: -C panic=abort
|
|
//@ no-prefer-dynamic
|
|
//@ ignore-backends: gcc
|
|
|
|
#[cfg(panic = "unwind")]
|
|
pub fn bad() -> i32 { }
|
|
|
|
#[cfg(not(panic = "abort"))]
|
|
pub fn bad() -> i32 { }
|
|
|
|
#[cfg(panic = "abort")]
|
|
pub fn main() { }
|