about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-12-02 20:56:11 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-12-02 20:56:26 +0000
commitc8c9207e4c29a42f69408e92ca95fc34f7bf04c6 (patch)
tree885fddc98a657d15a4983e544a46a1987de56fde
parent45dd5d6bf340b48cf2a00755da4ca9dd7b6eb640 (diff)
downloadrust-c8c9207e4c29a42f69408e92ca95fc34f7bf04c6.tar.gz
rust-c8c9207e4c29a42f69408e92ca95fc34f7bf04c6.zip
FileCheck read_immutable_static.
-rw-r--r--tests/mir-opt/const_prop/read_immutable_static.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/mir-opt/const_prop/read_immutable_static.rs b/tests/mir-opt/const_prop/read_immutable_static.rs
index a8d8cfacc7c..0fa18dd101a 100644
--- a/tests/mir-opt/const_prop/read_immutable_static.rs
+++ b/tests/mir-opt/const_prop/read_immutable_static.rs
@@ -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;
 }