mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
compiletest: Use //@ prefixes also for debuginfo test directives
So that when we later add support for revisions we can use the same syntax for revisions as elsewhere. This also prevents people from making typos for commands since `src/tools/compiletest/src/directives/directive_names.rs` will catch such typos now. Note that we one FIXME for a non-trivial change for later: ``` // FIXME(148097): Change `// cdb-checksimple_closure` to `//@ cdb-check:simple_closure` ```
This commit is contained in:
@@ -10,50 +10,50 @@
|
||||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
// gdb-command:print b
|
||||
// gdb-check:$1 = coroutine_objects::main::{coroutine_env#0}::Unresumed{_ref__a: 0x[...]}
|
||||
// gdb-command:continue
|
||||
// gdb-command:print b
|
||||
// gdb-check:$2 = coroutine_objects::main::{coroutine_env#0}::Suspend0{c: 6, d: 7, _ref__a: 0x[...]}
|
||||
// gdb-command:continue
|
||||
// gdb-command:print b
|
||||
// gdb-check:$3 = coroutine_objects::main::{coroutine_env#0}::Suspend1{c: 7, d: 8, _ref__a: 0x[...]}
|
||||
// gdb-command:continue
|
||||
// gdb-command:print b
|
||||
// gdb-check:$4 = coroutine_objects::main::{coroutine_env#0}::Returned{_ref__a: 0x[...]}
|
||||
//@ gdb-command:run
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$1 = coroutine_objects::main::{coroutine_env#0}::Unresumed{_ref__a: 0x[...]}
|
||||
//@ gdb-command:continue
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$2 = coroutine_objects::main::{coroutine_env#0}::Suspend0{c: 6, d: 7, _ref__a: 0x[...]}
|
||||
//@ gdb-command:continue
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$3 = coroutine_objects::main::{coroutine_env#0}::Suspend1{c: 7, d: 8, _ref__a: 0x[...]}
|
||||
//@ gdb-command:continue
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$4 = coroutine_objects::main::{coroutine_env#0}::Returned{_ref__a: 0x[...]}
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
// lldb-command:v b
|
||||
// lldb-check:(coroutine_objects::main::{coroutine_env#0}) b = 0{_ref__a:0x[...]} { _ref__a = 0x[...] }
|
||||
//@ lldb-command:run
|
||||
//@ lldb-command:v b
|
||||
//@ lldb-check:(coroutine_objects::main::{coroutine_env#0}) b = 0{_ref__a:0x[...]} { _ref__a = 0x[...] }
|
||||
|
||||
// === CDB TESTS ===================================================================================
|
||||
|
||||
// cdb-command: g
|
||||
// cdb-command: dx b
|
||||
// cdb-check: b : Unresumed [Type: enum2$<coroutine_objects::main::coroutine_env$0>]
|
||||
// cdb-check: [+0x[...]] _ref__a : 0x[...] : 5 [Type: int *]
|
||||
//@ cdb-command: g
|
||||
//@ cdb-command: dx b
|
||||
//@ cdb-check: b : Unresumed [Type: enum2$<coroutine_objects::main::coroutine_env$0>]
|
||||
//@ cdb-check: [+0x[...]] _ref__a : 0x[...] : 5 [Type: int *]
|
||||
|
||||
// cdb-command: g
|
||||
// cdb-command: dx b
|
||||
// cdb-check: b : Suspend0 [Type: enum2$<coroutine_objects::main::coroutine_env$0>]
|
||||
// cdb-check: [+0x[...]] c : 6 [Type: int]
|
||||
// cdb-check: [+0x[...]] d : 7 [Type: int]
|
||||
// cdb-check: [+0x[...]] _ref__a : 0x[...] : 5 [Type: int *]
|
||||
//@ cdb-command: g
|
||||
//@ cdb-command: dx b
|
||||
//@ cdb-check: b : Suspend0 [Type: enum2$<coroutine_objects::main::coroutine_env$0>]
|
||||
//@ cdb-check: [+0x[...]] c : 6 [Type: int]
|
||||
//@ cdb-check: [+0x[...]] d : 7 [Type: int]
|
||||
//@ cdb-check: [+0x[...]] _ref__a : 0x[...] : 5 [Type: int *]
|
||||
|
||||
// cdb-command: g
|
||||
// cdb-command: dx b
|
||||
// cdb-check: b : Suspend1 [Type: enum2$<coroutine_objects::main::coroutine_env$0>]
|
||||
// cdb-check: [+0x[...]] c : 7 [Type: int]
|
||||
// cdb-check: [+0x[...]] d : 8 [Type: int]
|
||||
// cdb-check: [+0x[...]] _ref__a : 0x[...] : 6 [Type: int *]
|
||||
//@ cdb-command: g
|
||||
//@ cdb-command: dx b
|
||||
//@ cdb-check: b : Suspend1 [Type: enum2$<coroutine_objects::main::coroutine_env$0>]
|
||||
//@ cdb-check: [+0x[...]] c : 7 [Type: int]
|
||||
//@ cdb-check: [+0x[...]] d : 8 [Type: int]
|
||||
//@ cdb-check: [+0x[...]] _ref__a : 0x[...] : 6 [Type: int *]
|
||||
|
||||
// cdb-command: g
|
||||
// cdb-command: dx b
|
||||
// cdb-check: b : Returned [Type: enum2$<coroutine_objects::main::coroutine_env$0>]
|
||||
// cdb-check: [+0x[...]] _ref__a : 0x[...] : 6 [Type: int *]
|
||||
//@ cdb-command: g
|
||||
//@ cdb-command: dx b
|
||||
//@ cdb-check: b : Returned [Type: enum2$<coroutine_objects::main::coroutine_env$0>]
|
||||
//@ cdb-check: [+0x[...]] _ref__a : 0x[...] : 6 [Type: int *]
|
||||
|
||||
#![feature(coroutines, coroutine_trait, stmt_expr_attributes)]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user