FileCheck return_place. · rust-lang/rust@87522d0 (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 87522d0

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
1 -// skip-filecheck
2 1 // unit-test: ConstProp
3 2 // EMIT_MIR_FOR_EACH_PANIC_STRATEGY
4 3 // compile-flags: -C overflow-checks=on
5 4
6 5 // EMIT_MIR return_place.add.ConstProp.diff
7 6 // EMIT_MIR return_place.add.PreCodegen.before.mir
8 7 fn add() -> u32 {
8 +// CHECK-LABEL: fn add(
9 +// CHECK: _0 = const 4_u32;
9 10 2 + 2
10 11 }
11 12