diff options
Diffstat (limited to 'tests/mir-opt/const_prop/array_index.rs')
-rw-r--r-- | tests/mir-opt/const_prop/array_index.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/mir-opt/const_prop/array_index.rs b/tests/mir-opt/const_prop/array_index.rs new file mode 100644 index 000000000..d31c2827b --- /dev/null +++ b/tests/mir-opt/const_prop/array_index.rs @@ -0,0 +1,7 @@ +// unit-test: ConstProp +// EMIT_MIR_FOR_EACH_BIT_WIDTH + +// EMIT_MIR array_index.main.ConstProp.diff +fn main() { + let x: u32 = [0, 1, 2, 3][2]; +} |