Sign in
rust
/
miri
/
refs/heads/rustc_doublecheck
/
.
/
tests
/
fail
/
function_calls
/
check_arg_abi.rs
blob: ffa0443ce507ad80ed401be98ee3db157ea7ea25 [
file
] [
log
] [
blame
] [
edit
]
fn
main
()
{
extern
"Rust"
{
fn
malloc
(
size
:
usize
)
->
*
mut
std
::
ffi
::
c_void
;
}
unsafe
{
let
_
=
malloc
(
0
);
//~ ERROR: calling a function with ABI C using caller ABI Rust
};
}