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` ```
29 lines
657 B
Rust
29 lines
657 B
Rust
//@ ignore-windows-gnu: #128981
|
|
//@ ignore-android: FIXME(#10381)
|
|
//@ ignore-aix: FIXME(#137965)
|
|
//@ compile-flags:-g
|
|
//@ ignore-backends: gcc
|
|
|
|
// === GDB TESTS ===================================================================================
|
|
|
|
//@ gdb-command: run
|
|
|
|
//@ gdb-command: print vec
|
|
//@ gdb-check:$1 = Vec(size=1000000000) = {[...]...}
|
|
|
|
//@ gdb-command: print slice
|
|
//@ gdb-check:$2 = &[u8](size=1000000000) = {[...]...}
|
|
|
|
#![allow(unused_variables)]
|
|
|
|
fn main() {
|
|
|
|
// Vec
|
|
let mut vec: Vec<u8> = Vec::with_capacity(1_000_000_000);
|
|
unsafe{ vec.set_len(1_000_000_000) }
|
|
let slice = &vec[..];
|
|
|
|
zzz(); // #break
|
|
}
|
|
|
|
fn zzz() { () }
|