1 #![feature(core_intrinsics)]
3 extern "C" fn try_fn(_: *mut u8) {
9 // Make sure we check the ABI when Miri itself invokes a function
10 // as part of a shim implementation.
11 std::intrinsics::r#try(
12 //~^ ERROR: calling a function with ABI C using caller ABI Rust
13 std::mem::transmute::<extern "C" fn(*mut u8), _>(try_fn),
15 |_, _| unreachable!(),