add test for caller ABI check

This commit is contained in:
Ralf Jung 2021-01-29 21:16:17 +01:00
parent b38dc837f2
commit 9d777d8410

View File

@ -0,0 +1,9 @@
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
};
}