//@ignore-target-windows: No libc on Windows use std::ptr; // null is explicitly called out as UB in the C docs. fn main() { unsafe { libc::memcmp(ptr::null(), ptr::null(), 0); //~ERROR: dangling } }