FileCheck read_immutable_static. · rust-lang/rust@c8c9207 (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit c8c9207

FileCheck read_immutable_static.

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
1 -// skip-filecheck
2 1 // unit-test: ConstProp
3 2
4 3 static FOO: u8 = 2;
5 4
6 5 // EMIT_MIR read_immutable_static.main.ConstProp.diff
7 6 fn main() {
7 +// CHECK-LABEL: fn main(
8 +// CHECK: debug x => [[x:_.*]];
9 +// CHECK: [[x]] = const 4_u8;
8 10 let x = FOO + FOO;
9 11 }