2021-01-29 21:16:17 +01:00
|
|
|
fn main() {
|
|
|
|
extern "Rust" {
|
|
|
|
fn malloc(size: usize) -> *mut std::ffi::c_void;
|
|
|
|
}
|
|
|
|
|
|
|
|
unsafe {
|
2022-07-11 11:44:55 +00:00
|
|
|
let _ = malloc(0); //~ ERROR: calling a function with ABI C using caller ABI Rust
|
2021-01-29 21:16:17 +01:00
|
|
|
};
|
|
|
|
}
|