mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
FileCheck read_immutable_static.
This commit is contained in:
parent
45dd5d6bf3
commit
c8c9207e4c
@ -1,9 +1,11 @@
|
||||
// skip-filecheck
|
||||
// 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user