1 // compile-flags: -C opt-level=0
2 // ignore-wasm32-bare compiled with panic=abort by default
6 // We disable optimizations to prevent LLVM from infering the attribute.
12 // CHECK-NOT: Function Attrs:{{.*}}nounwind
13 pub unsafe extern "C" fn foo() {
17 // Note that this test will get removed when `C-unwind` is fully stabilized