Auto merge of #1320 - RalfJung:tests, r=RalfJung
compile-fail test organization Move compile-fail tests to appropriate directories. (run-pass tests often test many things in one file, organized by functions. But for compile-fail tests that is not possible.)
This commit is contained in:
commit
8c396609d0
@ -2,6 +2,6 @@
|
||||
// compile-flags: -Zmiri-disable-validation
|
||||
|
||||
fn main() {
|
||||
let x = 2usize as *const u32;
|
||||
let _y = unsafe { &*x as *const u32 }; //~ ERROR invalid use of 2 as a pointer
|
||||
let x = 16usize as *const u32;
|
||||
let _y = unsafe { &*x as *const u32 }; //~ ERROR invalid use of 16 as a pointer
|
||||
}
|
Loading…
Reference in New Issue
Block a user