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