Sign in
fuchsia
/
third_party
/
rust
/
ebf574fb97e8a771972ba5866bf395ecce3d14be
/
.
/
src
/
tools
/
miri
/
tests
/
fail-dep
/
shims
/
memcmp_null.rs
blob: a4e0034c40bdc47388d3df61bc816b8b514f9810 [
file
] [
log
] [
blame
]
//@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
}
}