Auto merge of #1696 - RalfJung:abi-check, r=RalfJung

add test for caller ABI check
This commit is contained in:
bors 2021-01-29 20:16:49 +00:00
commit bcb87a70f8

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
};
}