| // compile-flags: -C panic=abort | |
| #![crate_type = "lib"] | |
| #![feature(c_unwind)] | |
| extern "C-unwind" { | |
| fn bar(); | |
| } | |
| // CHECK: Function Attrs:{{.*}}nounwind | |
| // CHECK-NEXT: define{{.*}}void @foo | |
| // CHECK: call void @_ZN4core9panicking15panic_no_unwind | |
| #[no_mangle] | |
| pub unsafe extern "C" fn foo() { | |
| bar(); | |
| } |