diff options
| author | Camille Gillot <gillot.camille@gmail.com> | 2025-08-18 22:53:14 +0000 |
|---|---|---|
| committer | Camille Gillot <gillot.camille@gmail.com> | 2025-09-07 16:35:30 +0000 |
| commit | b9262bce67f6d924d17632bf5539e4745e7b3a29 (patch) | |
| tree | 0995cccc742d86e05f846b9fd3eacc3a192bd90f /tests | |
| parent | 9b8a719ae48db491a5f18d52fdbb802508bf75a5 (diff) | |
| download | rust-b9262bce67f6d924d17632bf5539e4745e7b3a29.tar.gz rust-b9262bce67f6d924d17632bf5539e4745e7b3a29.zip | |
Use regular MaybeLiveLocals.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/mir-opt/nrvo_miscompile_111005.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/mir-opt/nrvo_miscompile_111005.rs b/tests/mir-opt/nrvo_miscompile_111005.rs index 03008fa8191..131f7b8f6f9 100644 --- a/tests/mir-opt/nrvo_miscompile_111005.rs +++ b/tests/mir-opt/nrvo_miscompile_111005.rs @@ -1,4 +1,3 @@ -// skip-filecheck // This is a miscompilation, #111005 to track //@ test-mir-pass: RenameReturnPlace @@ -10,6 +9,11 @@ use core::intrinsics::mir::*; // EMIT_MIR nrvo_miscompile_111005.wrong.RenameReturnPlace.diff #[custom_mir(dialect = "runtime", phase = "initial")] pub fn wrong(arg: char) -> char { + // CHECK-LABEL: fn wrong( + // CHECK: _0 = copy _1; + // FIXME: This is wrong: + // CHECK-NEXT: _0 = const 'b'; + // CHECK-NEXT: return; mir! { { let temp = arg; |
