about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-12-02 20:18:55 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-12-02 20:18:58 +0000
commit7f328d2a4462c3a8afcaf773a22c2b9c300fef12 (patch)
tree2b7ade4a6c9dd1aaac25fc5e74860968fe9c023b
parente6a1b77cd106a5a2a1571e74039fc466559ff8db (diff)
downloadrust-7f328d2a4462c3a8afcaf773a22c2b9c300fef12.tar.gz
rust-7f328d2a4462c3a8afcaf773a22c2b9c300fef12.zip
FileCheck checked_add.
-rw-r--r--tests/mir-opt/const_prop/checked_add.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/mir-opt/const_prop/checked_add.rs b/tests/mir-opt/const_prop/checked_add.rs
index 6a53aced091..571a5cc4e4d 100644
--- a/tests/mir-opt/const_prop/checked_add.rs
+++ b/tests/mir-opt/const_prop/checked_add.rs
@@ -1,9 +1,12 @@
-// skip-filecheck
 // EMIT_MIR_FOR_EACH_PANIC_STRATEGY
 // unit-test: ConstProp
 // compile-flags: -C overflow-checks=on
 
 // EMIT_MIR checked_add.main.ConstProp.diff
 fn main() {
+    // CHECK-LABEL: fn main(
+    // CHECK: debug x => [[x:_.*]];
+    // CHECK: assert(!const false,
+    // CHECK: [[x]] = const 2_u32;
     let x: u32 = 1 + 1;
 }