mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-29 11:51:31 +03:00
12 lines
236 B
Rust
12 lines
236 B
Rust
// 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;
|
|
}
|