diff options
Diffstat (limited to 'tests/mir-opt/const_prop/cast.rs')
-rw-r--r-- | tests/mir-opt/const_prop/cast.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/mir-opt/const_prop/cast.rs b/tests/mir-opt/const_prop/cast.rs new file mode 100644 index 000000000..984086eda --- /dev/null +++ b/tests/mir-opt/const_prop/cast.rs @@ -0,0 +1,8 @@ +// unit-test: ConstProp +// EMIT_MIR cast.main.ConstProp.diff + +fn main() { + let x = 42u8 as u32; + + let y = 42u32 as u8; +} |