mirror of
https://git.proxmox.com/git/rustc
synced 2026-03-29 05:30:47 +00:00
12 lines
224 B
Rust
12 lines
224 B
Rust
// unit-test: 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;
|
|
}
|