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` ```
22 lines
562 B
Rust
22 lines
562 B
Rust
//@ only-cdb
|
|
//@ compile-flags:-g
|
|
|
|
// === CDB TESTS ==================================================================================
|
|
|
|
//@ cdb-command: g
|
|
|
|
//@ cdb-command: dx duration
|
|
//@ cdb-check:duration : 5s 12ns [Type: core::time::Duration]
|
|
//@ cdb-check: [<Raw View>] [Type: core::time::Duration]
|
|
//@ cdb-check: seconds : 5 [Type: unsigned __int64]
|
|
//@ cdb-check: nanoseconds : 12 [Type: unsigned int]
|
|
|
|
use std::time::Duration;
|
|
|
|
fn main() {
|
|
let duration = Duration::new(5, 12);
|
|
|
|
zzz(); // #break
|
|
}
|
|
|
|
fn zzz() { }
|