FileCheck boxes. · rust-lang/rust@b8f2f63 (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit b8f2f63
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
1 | -// skip-filecheck | |
2 | 1 | // unit-test: ConstProp |
3 | 2 | // compile-flags: -O |
4 | 3 | // EMIT_MIR_FOR_EACH_PANIC_STRATEGY |
@@ -9,6 +8,11 @@ | ||
9 | 8 | |
10 | 9 | // EMIT_MIR boxes.main.ConstProp.diff |
11 | 10 | fn main() { |
11 | +// 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); | |
12 | 16 | let x = *(#[rustc_box] |
13 | 17 | Box::new(42)) |
14 | 18 | + 0; |