]> git.lizzy.rs Git - rust.git/blob - src/test/debuginfo/basic-types-metadata.rs
rollup merge of #20350: fhahn/issue-20340-rustdoc-version
[rust.git] / src / test / debuginfo / basic-types-metadata.rs
1 // Copyright 2013-2014 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-android: FIXME(#10381)
12 // min-lldb-version: 310
13
14 // compile-flags:-g
15 // gdb-command:run
16 // gdb-command:whatis unit
17 // gdb-check:type = ()
18 // gdb-command:whatis b
19 // gdb-check:type = bool
20 // gdb-command:whatis i
21 // gdb-check:type = int
22 // gdb-command:whatis c
23 // gdb-check:type = char
24 // gdb-command:whatis i8
25 // gdb-check:type = i8
26 // gdb-command:whatis i16
27 // gdb-check:type = i16
28 // gdb-command:whatis i32
29 // gdb-check:type = i32
30 // gdb-command:whatis i64
31 // gdb-check:type = i64
32 // gdb-command:whatis u
33 // gdb-check:type = uint
34 // gdb-command:whatis u8
35 // gdb-check:type = u8
36 // gdb-command:whatis u16
37 // gdb-check:type = u16
38 // gdb-command:whatis u32
39 // gdb-check:type = u32
40 // gdb-command:whatis u64
41 // gdb-check:type = u64
42 // gdb-command:whatis f32
43 // gdb-check:type = f32
44 // gdb-command:whatis f64
45 // gdb-check:type = f64
46 // gdb-command:info functions _yyy
47 // gdb-check:[...]![...]_yyy([...])([...]);
48 // gdb-command:continue
49
50 #![allow(unused_variables)]
51 #![omit_gdb_pretty_printer_section]
52
53 fn main() {
54     let unit: () = ();
55     let b: bool = false;
56     let i: int = -1;
57     let c: char = 'a';
58     let i8: i8 = 68;
59     let i16: i16 = -16;
60     let i32: i32 = -32;
61     let i64: i64 = -64;
62     let u: uint = 1;
63     let u8: u8 = 100;
64     let u16: u16 = 16;
65     let u32: u32 = 32;
66     let u64: u64 = 64;
67     let f32: f32 = 2.5;
68     let f64: f64 = 3.5;
69     _zzz(); // #break
70     if 1i == 1 { _yyy(); }
71 }
72
73 fn _zzz() {()}
74 fn _yyy() -> ! {panic!()}