rust/tests/mir-opt/const_prop/read_immutable_static.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
229 B
Rust
Raw Normal View History

//@ test-mir-pass: GVN
static FOO: u8 = 2;
2023-09-20 16:43:33 -05:00
// EMIT_MIR read_immutable_static.main.GVN.diff
fn main() {
2023-12-02 14:56:11 -06:00
// CHECK-LABEL: fn main(
// CHECK: debug x => [[x:_.*]];
// CHECK: [[x]] = const 4_u8;
let x = FOO + FOO;
}