diff options
Diffstat (limited to 'tests/mir-opt/const_prop/return_place.rs')
-rw-r--r-- | tests/mir-opt/const_prop/return_place.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/mir-opt/const_prop/return_place.rs b/tests/mir-opt/const_prop/return_place.rs new file mode 100644 index 000000000..06a853696 --- /dev/null +++ b/tests/mir-opt/const_prop/return_place.rs @@ -0,0 +1,11 @@ +// compile-flags: -C overflow-checks=on + +// EMIT_MIR return_place.add.ConstProp.diff +// EMIT_MIR return_place.add.PreCodegen.before.mir +fn add() -> u32 { + 2 + 2 +} + +fn main() { + add(); +} |