mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-19 20:13:47 +00:00
10 lines
147 B
Rust
10 lines
147 B
Rust
// unit-test
|
|
// compile-flags: -O
|
|
|
|
static FOO: u8 = 2;
|
|
|
|
// EMIT_MIR read_immutable_static.main.ConstProp.diff
|
|
fn main() {
|
|
let x = FOO + FOO;
|
|
}
|