summaryrefslogtreecommitdiffstats
path: root/src/test/ui/panic-runtime/auxiliary
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/panic-runtime/auxiliary')
-rw-r--r--src/test/ui/panic-runtime/auxiliary/depends.rs8
-rw-r--r--src/test/ui/panic-runtime/auxiliary/exit-success-if-unwind.rs16
-rw-r--r--src/test/ui/panic-runtime/auxiliary/needs-abort.rs5
-rw-r--r--src/test/ui/panic-runtime/auxiliary/needs-panic-runtime.rs6
-rw-r--r--src/test/ui/panic-runtime/auxiliary/needs-unwind.rs13
-rw-r--r--src/test/ui/panic-runtime/auxiliary/panic-runtime-abort.rs17
-rw-r--r--src/test/ui/panic-runtime/auxiliary/panic-runtime-lang-items.rs15
-rw-r--r--src/test/ui/panic-runtime/auxiliary/panic-runtime-unwind.rs17
-rw-r--r--src/test/ui/panic-runtime/auxiliary/panic-runtime-unwind2.rs17
-rw-r--r--src/test/ui/panic-runtime/auxiliary/wants-panic-runtime-abort.rs7
-rw-r--r--src/test/ui/panic-runtime/auxiliary/wants-panic-runtime-unwind.rs6
11 files changed, 0 insertions, 127 deletions
diff --git a/src/test/ui/panic-runtime/auxiliary/depends.rs b/src/test/ui/panic-runtime/auxiliary/depends.rs
deleted file mode 100644
index e9bc2f489..000000000
--- a/src/test/ui/panic-runtime/auxiliary/depends.rs
+++ /dev/null
@@ -1,8 +0,0 @@
-// no-prefer-dynamic
-
-#![feature(panic_runtime)]
-#![crate_type = "rlib"]
-#![panic_runtime]
-#![no_std]
-
-extern crate needs_panic_runtime;
diff --git a/src/test/ui/panic-runtime/auxiliary/exit-success-if-unwind.rs b/src/test/ui/panic-runtime/auxiliary/exit-success-if-unwind.rs
deleted file mode 100644
index c0e057405..000000000
--- a/src/test/ui/panic-runtime/auxiliary/exit-success-if-unwind.rs
+++ /dev/null
@@ -1,16 +0,0 @@
-// no-prefer-dynamic
-
-#![crate_type = "rlib"]
-
-struct Bomb;
-
-impl Drop for Bomb {
- fn drop(&mut self) {
- std::process::exit(0);
- }
-}
-
-pub fn bar(f: fn()) {
- let _bomb = Bomb;
- f();
-}
diff --git a/src/test/ui/panic-runtime/auxiliary/needs-abort.rs b/src/test/ui/panic-runtime/auxiliary/needs-abort.rs
deleted file mode 100644
index 8fad49b5e..000000000
--- a/src/test/ui/panic-runtime/auxiliary/needs-abort.rs
+++ /dev/null
@@ -1,5 +0,0 @@
-// compile-flags:-C panic=abort
-// no-prefer-dynamic
-
-#![crate_type = "rlib"]
-#![no_std]
diff --git a/src/test/ui/panic-runtime/auxiliary/needs-panic-runtime.rs b/src/test/ui/panic-runtime/auxiliary/needs-panic-runtime.rs
deleted file mode 100644
index 3f030c169..000000000
--- a/src/test/ui/panic-runtime/auxiliary/needs-panic-runtime.rs
+++ /dev/null
@@ -1,6 +0,0 @@
-// no-prefer-dynamic
-
-#![feature(needs_panic_runtime)]
-#![crate_type = "rlib"]
-#![needs_panic_runtime]
-#![no_std]
diff --git a/src/test/ui/panic-runtime/auxiliary/needs-unwind.rs b/src/test/ui/panic-runtime/auxiliary/needs-unwind.rs
deleted file mode 100644
index d555b5319..000000000
--- a/src/test/ui/panic-runtime/auxiliary/needs-unwind.rs
+++ /dev/null
@@ -1,13 +0,0 @@
-// compile-flags:-C panic=unwind
-// no-prefer-dynamic
-
-#![crate_type = "rlib"]
-#![no_std]
-#![feature(c_unwind)]
-
-extern "C-unwind" fn foo() {}
-
-fn bar() {
- let ptr: extern "C-unwind" fn() = foo;
- ptr();
-}
diff --git a/src/test/ui/panic-runtime/auxiliary/panic-runtime-abort.rs b/src/test/ui/panic-runtime/auxiliary/panic-runtime-abort.rs
deleted file mode 100644
index c92015eee..000000000
--- a/src/test/ui/panic-runtime/auxiliary/panic-runtime-abort.rs
+++ /dev/null
@@ -1,17 +0,0 @@
-// compile-flags:-C panic=abort
-// no-prefer-dynamic
-
-#![feature(panic_runtime)]
-#![crate_type = "rlib"]
-
-#![no_std]
-#![panic_runtime]
-
-#[no_mangle]
-pub extern "C" fn __rust_maybe_catch_panic() {}
-
-#[no_mangle]
-pub extern "C" fn __rust_start_panic() {}
-
-#[no_mangle]
-pub extern "C" fn rust_eh_personality() {}
diff --git a/src/test/ui/panic-runtime/auxiliary/panic-runtime-lang-items.rs b/src/test/ui/panic-runtime/auxiliary/panic-runtime-lang-items.rs
deleted file mode 100644
index b9ef2f329..000000000
--- a/src/test/ui/panic-runtime/auxiliary/panic-runtime-lang-items.rs
+++ /dev/null
@@ -1,15 +0,0 @@
-// no-prefer-dynamic
-
-#![crate_type = "rlib"]
-
-#![no_std]
-#![feature(lang_items)]
-
-use core::panic::PanicInfo;
-
-#[lang = "panic_impl"]
-fn panic_impl(info: &PanicInfo) -> ! { loop {} }
-#[lang = "eh_personality"]
-fn eh_personality() {}
-#[lang = "eh_catch_typeinfo"]
-static EH_CATCH_TYPEINFO: u8 = 0;
diff --git a/src/test/ui/panic-runtime/auxiliary/panic-runtime-unwind.rs b/src/test/ui/panic-runtime/auxiliary/panic-runtime-unwind.rs
deleted file mode 100644
index 2f7aed924..000000000
--- a/src/test/ui/panic-runtime/auxiliary/panic-runtime-unwind.rs
+++ /dev/null
@@ -1,17 +0,0 @@
-// compile-flags:-C panic=unwind
-// no-prefer-dynamic
-
-#![feature(panic_runtime)]
-#![crate_type = "rlib"]
-
-#![no_std]
-#![panic_runtime]
-
-#[no_mangle]
-pub extern "C" fn __rust_maybe_catch_panic() {}
-
-#[no_mangle]
-pub extern "C" fn __rust_start_panic() {}
-
-#[no_mangle]
-pub extern "C" fn rust_eh_personality() {}
diff --git a/src/test/ui/panic-runtime/auxiliary/panic-runtime-unwind2.rs b/src/test/ui/panic-runtime/auxiliary/panic-runtime-unwind2.rs
deleted file mode 100644
index 2f7aed924..000000000
--- a/src/test/ui/panic-runtime/auxiliary/panic-runtime-unwind2.rs
+++ /dev/null
@@ -1,17 +0,0 @@
-// compile-flags:-C panic=unwind
-// no-prefer-dynamic
-
-#![feature(panic_runtime)]
-#![crate_type = "rlib"]
-
-#![no_std]
-#![panic_runtime]
-
-#[no_mangle]
-pub extern "C" fn __rust_maybe_catch_panic() {}
-
-#[no_mangle]
-pub extern "C" fn __rust_start_panic() {}
-
-#[no_mangle]
-pub extern "C" fn rust_eh_personality() {}
diff --git a/src/test/ui/panic-runtime/auxiliary/wants-panic-runtime-abort.rs b/src/test/ui/panic-runtime/auxiliary/wants-panic-runtime-abort.rs
deleted file mode 100644
index 3c0d2d658..000000000
--- a/src/test/ui/panic-runtime/auxiliary/wants-panic-runtime-abort.rs
+++ /dev/null
@@ -1,7 +0,0 @@
-// compile-flags:-C panic=abort
-// no-prefer-dynamic
-
-#![crate_type = "rlib"]
-#![no_std]
-
-extern crate panic_runtime_abort;
diff --git a/src/test/ui/panic-runtime/auxiliary/wants-panic-runtime-unwind.rs b/src/test/ui/panic-runtime/auxiliary/wants-panic-runtime-unwind.rs
deleted file mode 100644
index d5f010219..000000000
--- a/src/test/ui/panic-runtime/auxiliary/wants-panic-runtime-unwind.rs
+++ /dev/null
@@ -1,6 +0,0 @@
-// no-prefer-dynamic
-
-#![crate_type = "rlib"]
-#![no_std]
-
-extern crate panic_runtime_unwind;