mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
FileCheck boxes.
This commit is contained in:
parent
3fc03948a8
commit
b8f2f63931
@ -1,4 +1,3 @@
|
|||||||
// skip-filecheck
|
|
||||||
// unit-test: ConstProp
|
// unit-test: ConstProp
|
||||||
// compile-flags: -O
|
// compile-flags: -O
|
||||||
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
||||||
@ -9,6 +8,11 @@
|
|||||||
|
|
||||||
// EMIT_MIR boxes.main.ConstProp.diff
|
// EMIT_MIR boxes.main.ConstProp.diff
|
||||||
fn main() {
|
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]
|
let x = *(#[rustc_box]
|
||||||
Box::new(42))
|
Box::new(42))
|
||||||
+ 0;
|
+ 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user