]> git.lizzy.rs Git - rust.git/blob - tests/codegen/unwind-abis/nounwind.rs
Rollup merge of #106958 - jyn514:labels, r=m-ou-se
[rust.git] / tests / 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() {}