]> git.lizzy.rs Git - rust.git/blob - tests/codegen/unwind-abis/nounwind-on-stable-panic-unwind.rs
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / codegen / unwind-abis / nounwind-on-stable-panic-unwind.rs
1 // compile-flags: -C opt-level=0
2 // ignore-wasm32-bare compiled with panic=abort by default
3
4 #![crate_type = "lib"]
5
6 // We disable optimizations to prevent LLVM from inferring the attribute.
7
8 extern "C" {
9     fn bar();
10 }
11
12 // CHECK-NOT: Function Attrs:{{.*}}nounwind
13 pub unsafe extern "C" fn foo() {
14     bar();
15 }
16
17 // Note that this test will get removed when `C-unwind` is fully stabilized