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…
x
Reference in New Issue
Block a user