1 //@revisions: no_cache cache fn_ptr
7 #[cfg(any(cache, fn_ptr))]
14 std::mem::transmute::<unsafe fn(), unsafe extern "C" fn()>(foo)();
15 //[fn_ptr]~^ ERROR: calling a function with calling convention Rust using calling convention C
18 // `Instance` caching should not suppress ABI check.
25 #[cfg_attr(any(cache, fn_ptr), allow(clashing_extern_declarations))]
31 //[no_cache]~^ ERROR: calling a function with calling convention Rust using calling convention C
32 //[cache]~| ERROR: calling a function with calling convention Rust using calling convention C