summaryrefslogtreecommitdiffstats
path: root/src/test/mir-opt/byte_slice.rs
blob: 48e9c48c120085d37434be012fc01f6669f4d2d2 (plain)
1
2
3
4
5
6
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'];
}