os-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
225 B
Rust
Raw Normal View History

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