3 // ignore-wasm32-bare compiled with panic=abort by default
6 #![warn(ffi_unwind_calls)]
10 pub extern "C-unwind" fn foo() {}
18 // Call to Rust function is fine.
20 // Call to foreign function should warn.
22 //~^ WARNING call to foreign function with FFI-unwind ABI
23 let ptr: extern "C-unwind" fn() = foo::foo;
24 // Call to function pointer should also warn.
26 //~^ WARNING call to function pointer with FFI-unwind ABI