16 lines
285 B
Rust
16 lines
285 B
Rust
//@compile-flags: -Zmiri-disable-abi-check
|
|
#![feature(c_unwind)]
|
|
|
|
#[no_mangle]
|
|
extern "C-unwind" fn unwind() {
|
|
panic!();
|
|
}
|
|
|
|
fn main() {
|
|
extern "C" {
|
|
fn unwind();
|
|
}
|
|
unsafe { unwind() }
|
|
//~^ ERROR: unwinding past a stack frame that does not allow unwinding
|
|
}
|