]>
git.proxmox.com Git - rustc.git/blob - src/test/codegen/unwind-extern-exports.rs
487de20671a2c0bffda69955eab1be4ac79926b6
1 // compile-flags: -C opt-level=0
2 // ignore-wasm32-bare compiled with panic=abort by default
5 #![feature(unwind_attributes)]
7 // Make sure these all do *not* get the attribute.
8 // We disable optimizations to prevent LLVM from infering the attribute.
12 // pub extern fn foo() {} // FIXME right now we don't abort-on-panic but add `nounwind` nevertheless
14 pub extern "C" fn foo_allowed() {}
17 // (`extern "Rust"` could be removed as all `fn` get it implicitly; we leave it in for clarity.)
18 pub extern "Rust" fn bar() {}
20 pub extern "Rust" fn bar_allowed() {}