mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 04:30:48 +00:00
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() { }
|