mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 11:34:11 +00:00
12 lines
229 B
Rust
12 lines
229 B
Rust
//@ test-mir-pass: GVN
|
|
|
|
static FOO: u8 = 2;
|
|
|
|
// EMIT_MIR read_immutable_static.main.GVN.diff
|
|
fn main() {
|
|
// CHECK-LABEL: fn main(
|
|
// CHECK: debug x => [[x:_.*]];
|
|
// CHECK: [[x]] = const 4_u8;
|
|
let x = FOO + FOO;
|
|
}
|