about summary refs log tree commit diff
path: root/tests/mir-opt/dataflow-const-prop/struct.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-10-19 16:53:52 +0000
committerbors <bors@rust-lang.org>2023-10-19 16:53:52 +0000
commite76cb8c49831ff80d7d2e16319c86edbaa9edb8c (patch)
tree0ee10fd0e3fbcb6aea6da062b9ef275fc4ca6a4f /tests/mir-opt/dataflow-const-prop/struct.rs
parentc104861b7b51d2c28e7023e7e53db16cc6677e29 (diff)
parent328192bff492d32b86004fd80f963296fb654278 (diff)
downloadrust-e76cb8c49831ff80d7d2e16319c86edbaa9edb8c.tar.gz
rust-e76cb8c49831ff80d7d2e16319c86edbaa9edb8c.zip
Auto merge of #116810 - cjgillot:mir-opt-check, r=oli-obk
Add FileCheck annotations to mir-opt tests.

This PR makes compiletest run LLVM `FileCheck` tool on mir-opt tests.

The check is *run by default*, except if disabled using `// skip-filecheck` comment. This ensures that we do not have a silently broken test. For now, the check is only run on the output of `--emit=mir`, ie. on PreCodegen MIR.

I give an example on `reference_prop.rs`.

r? `@oli-obk`
cc `@RalfJung`

Fixes https://github.com/rust-lang/rust/issues/85180
Diffstat (limited to 'tests/mir-opt/dataflow-const-prop/struct.rs')
-rw-r--r--tests/mir-opt/dataflow-const-prop/struct.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/mir-opt/dataflow-const-prop/struct.rs b/tests/mir-opt/dataflow-const-prop/struct.rs
index e92a1676d3f..7b0646a5356 100644
--- a/tests/mir-opt/dataflow-const-prop/struct.rs
+++ b/tests/mir-opt/dataflow-const-prop/struct.rs
@@ -1,3 +1,4 @@
+// skip-filecheck
 // unit-test: DataflowConstProp
 // EMIT_MIR_FOR_EACH_BIT_WIDTH