mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +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;
|
|
}
|