]> git.lizzy.rs Git - rust.git/blob - src/test/debuginfo/pretty-uninitialized-vec.rs
Rollup merge of #51722 - Aaronepower:master, r=Mark-Simulacrum
[rust.git] / src / test / debuginfo / pretty-uninitialized-vec.rs
1 // Copyright 2013-2016 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 // ignore-windows failing on win32 bot
12 // ignore-freebsd: gdb package too new
13 // ignore-android: FIXME(#10381)
14 // compile-flags:-g
15 // min-gdb-version 7.7
16 // min-lldb-version: 310
17
18 // === GDB TESTS ===================================================================================
19
20 // gdb-command: run
21
22 // gdb-command: print vec
23 // gdb-check:$1 = Vec<i32>(len: [...], cap: [...])[...]
24
25
26 #![allow(unused_variables)]
27
28 fn main() {
29
30     let vec;
31     zzz(); // #break
32     vec = vec![0];
33
34 }
35
36 fn zzz() { () }