1 // compile-flags: -C opt-level=0
4 #![feature(unwind_attributes)]
6 // Make sure these all do *not* get the attribute.
7 // We disable optimizations to prevent LLVM from infering the attribute.
11 // pub extern fn foo() {} // FIXME right now we don't abort-on-panic but add `nounwind` nevertheless
13 pub extern fn foo_allowed() {}
16 // (`extern "Rust"` could be removed as all `fn` get it implicitly; we leave it in for clarity.)
17 pub extern "Rust" fn bar() {}
19 pub extern "Rust" fn bar_allowed() {}