Skip to content

Commit

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

static FOO: u8 = 2;

// EMIT_MIR read_immutable_static.main.ConstProp.diff
fn main() {
// CHECK-LABEL: fn main(
// CHECK: debug x => [[x:_.*]];
// CHECK: [[x]] = const 4_u8;
let x = FOO + FOO;
}

0 comments on commit c8c9207

Please sign in to comment.