]> git.lizzy.rs Git - rust.git/blob - tests/codegen/unwind-abis/nounwind-on-stable-panic-abort.rs
Rollup merge of #105784 - yanns:update_stdarch, r=Amanieu
[rust.git] / tests / codegen / unwind-abis / nounwind-on-stable-panic-abort.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
6 // We disable optimizations to prevent LLVM from inferring the attribute.
7
8 // CHECK: Function Attrs:{{.*}}nounwind
9 // CHECK-NEXT: @foo
10 #[no_mangle]
11 pub extern "C" fn foo() {}
12
13 // CHECK: Function Attrs:{{.*}}nounwind
14 // CHECK-NEXT: @bar
15 #[no_mangle]
16 pub fn bar() {}