5 // Use the wrong type(ie. not the pointer width) for the `size`
7 #[cfg(target_pointer_width = "64")]
8 fn malloc(size: u32) -> *mut std::ffi::c_void;
10 #[cfg(target_pointer_width = "32")]
11 fn malloc(size: u16) -> *mut std::ffi::c_void;
15 let _p1 = malloc(42); //~ ERROR Undefined Behavior: scalar size mismatch