FileCheck read_immutable_static.

This commit is contained in:
Camille GILLOT 2023-12-02 20:56:11 +00:00
parent 45dd5d6bf3
commit c8c9207e4c

View File

@ -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;
}