We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fc0394 commit b8f2f63Copy full SHA for b8f2f63
tests/mir-opt/const_prop/boxes.rs
@@ -1,4 +1,3 @@
1
-// skip-filecheck
2
// unit-test: ConstProp
3
// compile-flags: -O
4
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
@@ -9,6 +8,11 @@
9
8
10
// EMIT_MIR boxes.main.ConstProp.diff
11
fn main() {
+ // CHECK-LABEL: fn main(
12
+ // CHECK: debug x => [[x:_.*]];
13
+ // CHECK: (*{{_.*}}) = const 42_i32;
14
+ // CHECK: [[tmp:_.*]] = (*{{_.*}});
15
+ // CHECK: [[x]] = Add(move [[tmp]], const 0_i32);
16
let x = *(#[rustc_box]
17
Box::new(42))
18
+ 0;
0 commit comments