]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/byte_slice.rs
Render const pointers in MIR more compactly
[rust.git] / src / test / mir-opt / byte_slice.rs
1 // compile-flags: -Z mir-opt-level=0
2
3 fn main() {
4     let x = b"foo";
5     let y = [5u8, b'x'];
6 }
7
8 // END RUST SOURCE
9 // START rustc.main.EraseRegions.after.mir
10 // ...
11 // _1 = const b"foo";
12 // ...
13 // _2 = [const 5u8, const 120u8];
14 // ...
15 // END rustc.main.EraseRegions.after.mir