Remove -Z no-landing-pads tests

This commit is contained in:
Amanieu d'Antras 2020-03-31 04:02:58 +01:00
parent 2f5bd9d0f1
commit 06e15a4ef9
2 changed files with 0 additions and 54 deletions

View File

@ -1,27 +0,0 @@
// compile-flags: -C panic=abort -C codegen-units=1
// error-pattern:converging_fn called
// ignore-cloudabi no std::process
use std::io::{self, Write};
struct Droppable;
impl Drop for Droppable {
fn drop(&mut self) {
::std::process::exit(1)
}
}
fn converging_fn() {
panic!("converging_fn called")
}
fn mir(d: Droppable) {
let x = Droppable;
converging_fn();
drop(x);
drop(d);
}
fn main() {
mir(Droppable);
}

View File

@ -1,27 +0,0 @@
// compile-flags: -C panic=abort -C codegen-units=1
// error-pattern:diverging_fn called
// ignore-cloudabi no std::process
use std::io::{self, Write};
struct Droppable;
impl Drop for Droppable {
fn drop(&mut self) {
::std::process::exit(1)
}
}
fn diverging_fn() -> ! {
panic!("diverging_fn called")
}
fn mir(d: Droppable) {
let x = Droppable;
diverging_fn();
drop(x);
drop(d);
}
fn main() {
mir(Droppable);
}