Chris Wailes | bcf972c | 2021-10-21 11:03:28 -0700 | [diff] [blame^] | 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 infering 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() {} |