blob: 9a4b3d3b4848080f8c07696429bba0b669d1f229 [file] [log] [blame]
Chris Wailesbcf972c2021-10-21 11:03:28 -07001// 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 infering the attribute.
7
8// CHECK: Function Attrs:{{.*}}nounwind
9// CHECK-NEXT: @foo
10#[no_mangle]
11pub extern "C" fn foo() {}
12
13// CHECK: Function Attrs:{{.*}}nounwind
14// CHECK-NEXT: @bar
15#[no_mangle]
16pub fn bar() {}