1 // compile-flags: -Z no-landing-pads -C codegen-units=1
2 // error-pattern:diverging_fn called
3 // ignore-cloudabi no std::process
5 use std::io::{self, Write};
8 impl Drop for Droppable {
10 ::std::process::exit(1)
14 fn diverging_fn() -> ! {
15 panic!("diverging_fn called")
18 fn mir(d: Droppable) {