blob: c923ccea9a8a5d7188d6aa554ba0f7300d28fde2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// Make sure that we don't insert a check for places that do not read.
//@ run-pass
//@ compile-flags: -C debug-assertions
fn main() {
let ptr: *const () = std::ptr::null();
unsafe {
let _ = *ptr;
let _ = &raw const *ptr;
}
}
|