Remove some tests
This commit is contained in:
parent
e4e6c25f67
commit
ba3b11fa42
@ -1,10 +0,0 @@
|
||||
#![feature(rustc_attrs, c_unwind)]
|
||||
|
||||
#[rustc_allocator_nounwind]
|
||||
extern "C-unwind" fn nounwind() {
|
||||
panic!();
|
||||
}
|
||||
|
||||
fn main() {
|
||||
nounwind(); //~ ERROR unwinding past a stack frame that does not allow unwinding
|
||||
}
|
@ -1,27 +0,0 @@
|
||||
#![feature(c_unwind, unboxed_closures, unwind_attributes)]
|
||||
|
||||
use std::panic;
|
||||
|
||||
extern "C-unwind" fn good_unwind_c() {
|
||||
panic!();
|
||||
}
|
||||
|
||||
#[unwind(allowed)]
|
||||
extern "C" fn good_unwind_allowed() {
|
||||
panic!();
|
||||
}
|
||||
|
||||
fn good_unwind_rust() {
|
||||
panic!();
|
||||
}
|
||||
|
||||
extern "rust-call" fn good_unwind_rust_call(_: ()) {
|
||||
panic!();
|
||||
}
|
||||
|
||||
fn main() {
|
||||
panic::catch_unwind(|| good_unwind_c()).unwrap_err();
|
||||
panic::catch_unwind(|| good_unwind_allowed()).unwrap_err();
|
||||
panic::catch_unwind(|| good_unwind_rust()).unwrap_err();
|
||||
good_unwind_rust_call(());
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
thread 'main' panicked at 'explicit panic', $DIR/good_unwind.rs:6:5
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
thread 'main' panicked at 'explicit panic', $DIR/good_unwind.rs:11:5
|
||||
thread 'main' panicked at 'explicit panic', $DIR/good_unwind.rs:15:5
|
||||
thread 'main' panicked at 'explicit panic', $DIR/good_unwind.rs:19:5
|
Loading…
x
Reference in New Issue
Block a user