diff options
Diffstat (limited to 'src/test/mir-opt/byte_slice.rs')
-rw-r--r-- | src/test/mir-opt/byte_slice.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/mir-opt/byte_slice.rs b/src/test/mir-opt/byte_slice.rs new file mode 100644 index 000000000..48e9c48c1 --- /dev/null +++ b/src/test/mir-opt/byte_slice.rs @@ -0,0 +1,7 @@ +// compile-flags: -Z mir-opt-level=0 + +// EMIT_MIR byte_slice.main.SimplifyCfg-elaborate-drops.after.mir +fn main() { + let x = b"foo"; + let y = [5u8, b'x']; +} |