1 //@revisions: extern_block definition both
2 #![feature(rustc_attrs, c_unwind)]
4 #[cfg_attr(any(definition, both), rustc_nounwind)]
6 extern "C-unwind" fn nounwind() {
7 //~[definition]^ ERROR: abnormal termination: the program aborted execution
8 //~[both]^^ ERROR: abnormal termination: the program aborted execution
14 #[cfg_attr(any(extern_block, both), rustc_nounwind)]
18 //~[extern_block]^ ERROR: unwinding past a stack frame that does not allow unwinding