mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
tests/debuginfo/macro-stepping.rs: Add revisions default-mir-passes, no-SingleUseConsts-mir-pass
To prevent the test from regressing both with and without `SingleUseConsts` MIR pass.
This commit is contained in:
@@ -14,8 +14,10 @@
|
||||
#[macro_use]
|
||||
extern crate macro_stepping; // exports new_scope!()
|
||||
|
||||
//@ compile-flags:-g -Zmir-enable-passes=-SingleUseConsts
|
||||
// SingleUseConsts shouldn't need to be disabled, see #128945
|
||||
//@ compile-flags: -g
|
||||
// FIXME(#128945): SingleUseConsts shouldn't need to be disabled.
|
||||
//@ revisions: default-mir-passes no-SingleUseConsts-mir-pass
|
||||
//@ [no-SingleUseConsts-mir-pass] compile-flags: -Zmir-enable-passes=-SingleUseConsts
|
||||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
@@ -48,7 +50,7 @@
|
||||
//@ gdb-check:[...]#inc-loc2[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#inc-loc3[...]
|
||||
//@ [no-SingleUseConsts-mir-pass] gdb-check:[...]#inc-loc3[...]
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user