mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Add FileCheck to partial_init.rs
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
// skip-filecheck
|
||||
//@ test-mir-pass: CopyProp
|
||||
// Verify that we do not ICE on partial initializations.
|
||||
|
||||
@@ -9,6 +8,9 @@
|
||||
// EMIT_MIR partial_init.main.CopyProp.diff
|
||||
#[custom_mir(dialect = "runtime", phase = "post-cleanup")]
|
||||
pub fn main() {
|
||||
// CHECK-LABEL: fn main(
|
||||
// CHECK: let mut [[x:_.*]]: (isize,);
|
||||
// CHECK: ([[x]].0: isize) = const 1_isize;
|
||||
mir! (
|
||||
let x: (isize, );
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user