Sign in
android
/
toolchain
/
rustc
/
da60c8575e02ed54fcffcb7f2f9289b4705b60ff
/
.
/
src
/
tools
/
miri
/
tests
/
compile-fail
/
intptrcast_null_pointer_deref.rs
blob: 0c5d46609cf83ac71ac4277a5365b3d82ab87e99 [
file
] [
log
] [
blame
]
// compile-flags: -Zmiri-seed=0000000000000000
fn
main
()
{
let
x
:
i32
=
unsafe
{
*
std
::
ptr
::
null
()
};
//~ ERROR invalid use of NULL pointer
panic
!(
"this should never print: {}"
,
x
);
}