]> git.lizzy.rs Git - rust.git/blob - src/tools/miri/tests/fail/function_calls/check_arg_abi.rs
Rollup merge of #102112 - cuviper:powerpc64-full-relro, r=eholk
[rust.git] / src / tools / miri / tests / fail / function_calls / check_arg_abi.rs
1 fn main() {
2     extern "Rust" {
3         fn malloc(size: usize) -> *mut std::ffi::c_void;
4     }
5
6     unsafe {
7         let _ = malloc(0); //~ ERROR: calling a function with ABI C using caller ABI Rust
8     };
9 }