Skip to content

Commit

Permalink
FileCheck scalar_literal_propagation.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgillot committed Dec 2, 2023
1 parent f3743ae commit 3e90c1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/mir-opt/const_prop/scalar_literal_propagation.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
// skip-filecheck
// unit-test: ConstProp
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY

// EMIT_MIR scalar_literal_propagation.main.ConstProp.diff
fn main() {
// CHECK-LABEL: fn main(
// CHECK: = consume(const 1_u32)
let x = 1;
consume(x);
}
Expand Down

0 comments on commit 3e90c1b

Please sign in to comment.