Remove some tests

This commit is contained in:
hyd-dev 2021-06-03 14:16:58 +08:00
parent e4e6c25f67
commit ba3b11fa42
No known key found for this signature in database
GPG Key ID: 74FA7FD5B8DA14B8
3 changed files with 0 additions and 42 deletions

View File

@ -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
}

View File

@ -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(());
}

View File

@ -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