1 // ignore-wasm32-bare compiled with panic=abort by default
2 // compile-flags: -C no-prepopulate-passes -Cpasses=name-anon-globals
7 // CHECK: Function Attrs: nounwind
8 // CHECK-NEXT: declare void @extern_fn
10 // CHECK-NOT: Function Attrs: nounwind
11 // CHECK: declare void @unwinding_extern_fn
12 #[unwind(allowed)] //~ ERROR the `#[unwind]` attribute is an experimental feature
13 fn unwinding_extern_fn();
16 pub unsafe fn force_declare() {
18 unwinding_extern_fn();