5 #![warn(ffi_unwind_calls)]
9 pub extern "C-unwind" fn foo() {}
17 // Call to Rust function is fine.
19 // Call to foreign function should warn.
21 //~^ WARNING call to foreign function with FFI-unwind ABI
22 let ptr: extern "C-unwind" fn() = foo::foo;
23 // Call to function pointer should also warn.
25 //~^ WARNING call to function pointer with FFI-unwind ABI