1 //@compile-flags: -Zmiri-permissive-provenance
2 #![feature(strict_provenance)]
8 let ptr = &mut v as *mut u8;
10 // Expose the allocation and use the exposed pointer, creating an unknown bottom
12 let p: *mut u8 = ptr::from_exposed_addr::<u8>(ptr.expose_addr()) as *mut u8;
16 // Pile on a lot of SharedReadOnly at the top of the stack