]> git.lizzy.rs Git - rust.git/blob - src/test/codegen/unwind-abis/nounwind-on-stable-panic-unwind.rs
Rollup merge of #101254 - rust-lang:notriddle/remove-even-more-css, r=jsha
[rust.git] / src / test / 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