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` ```
35 lines
729 B
Rust
35 lines
729 B
Rust
//@ compile-flags:-g
|
|
//@ min-gdb-version: 16.0
|
|
|
|
// === GDB TESTS ===================================================================================
|
|
|
|
//@ gdb-command: run
|
|
//@ gdb-check:[...]#break[...]
|
|
//@ gdb-command: up
|
|
//@ gdb-check:[...]zzz[...]
|
|
|
|
// === LLDB TESTS ==================================================================================
|
|
|
|
//@ lldb-command:run
|
|
//@ lldb-check:[...]#break[...]
|
|
//@ lldb-command: up
|
|
//@ lldb-check:[...]zzz[...]
|
|
|
|
struct Foo;
|
|
|
|
impl Foo {
|
|
fn bar(self) -> Foo {
|
|
println!("bar");
|
|
self
|
|
}
|
|
fn baz(self) -> Foo {
|
|
println!("baz"); // #break
|
|
self
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
let f = Foo;
|
|
f.bar() // aaa
|
|
.baz(); // zzz
|
|
}
|