]> git.lizzy.rs Git - rust.git/blob - src/test/codegen/unwind-abis/nounwind.rs
Auto merge of #97802 - Enselic:add-no_ignore_sigkill-feature, r=joshtriplett
[rust.git] / src / test / codegen / unwind-abis / nounwind.rs
1 // compile-flags: -C opt-level=0 -Cpanic=abort
2 // ignore-wasm32-bare compiled with panic=abort by default
3
4 #![crate_type = "lib"]
5 #![feature(c_unwind)]
6
7 // We disable optimizations to prevent LLVM from inferring the attribute.
8
9 // CHECK: Function Attrs:{{.*}}nounwind
10 // CHECK-NEXT: @foo
11 #[no_mangle]
12 pub extern "C" fn foo() {}
13
14 // CHECK: Function Attrs:{{.*}}nounwind
15 // CHECK-NEXT: @bar
16 #[no_mangle]
17 pub fn bar() {}