diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-12-02 20:18:21 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-12-02 20:18:21 +0000 |
| commit | b8f2f639310193aa2de2ffc1f5685f154dcd57cf (patch) | |
| tree | a8610cf7b45aaec889fca7ec9175dc5e33e1c5db | |
| parent | 3fc03948a8470fee27d5eee02ad6f4b29f6977d8 (diff) | |
| download | rust-b8f2f639310193aa2de2ffc1f5685f154dcd57cf.tar.gz rust-b8f2f639310193aa2de2ffc1f5685f154dcd57cf.zip | |
FileCheck boxes.
| -rw-r--r-- | tests/mir-opt/const_prop/boxes.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/mir-opt/const_prop/boxes.rs b/tests/mir-opt/const_prop/boxes.rs index c6807ece199..90a8e33e823 100644 --- a/tests/mir-opt/const_prop/boxes.rs +++ b/tests/mir-opt/const_prop/boxes.rs @@ -1,4 +1,3 @@ -// skip-filecheck // unit-test: ConstProp // compile-flags: -O // EMIT_MIR_FOR_EACH_PANIC_STRATEGY @@ -9,6 +8,11 @@ // EMIT_MIR boxes.main.ConstProp.diff fn main() { + // CHECK-LABEL: fn main( + // CHECK: debug x => [[x:_.*]]; + // CHECK: (*{{_.*}}) = const 42_i32; + // CHECK: [[tmp:_.*]] = (*{{_.*}}); + // CHECK: [[x]] = Add(move [[tmp]], const 0_i32); let x = *(#[rustc_box] Box::new(42)) + 0; |
