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.
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.
11 // Caveats - gdb prints any 8-bit value (meaning rust I8 and u8 values)
12 // as its numerical value along with its associated ASCII char, there
13 // doesn't seem to be any way around this. Also, gdb doesn't know
14 // about UTF-32 character encoding and will print a rust char as only
15 // its numerical value.
17 // ignore-android: FIXME(#10381)
18 // min-lldb-version: 310
22 // gdb-command:print 'basic-types-globals::B'
23 // gdb-check:$1 = false
24 // gdb-command:print 'basic-types-globals::I'
26 // gdb-command:print 'basic-types-globals::C'
28 // gdb-command:print/d 'basic-types-globals::I8'
30 // gdb-command:print 'basic-types-globals::I16'
32 // gdb-command:print 'basic-types-globals::I32'
34 // gdb-command:print 'basic-types-globals::I64'
36 // gdb-command:print 'basic-types-globals::U'
38 // gdb-command:print/d 'basic-types-globals::U8'
40 // gdb-command:print 'basic-types-globals::U16'
42 // gdb-command:print 'basic-types-globals::U32'
44 // gdb-command:print 'basic-types-globals::U64'
46 // gdb-command:print 'basic-types-globals::F32'
47 // gdb-check:$13 = 2.5
48 // gdb-command:print 'basic-types-globals::F64'
49 // gdb-check:$14 = 3.5
50 // gdb-command:continue
52 #![allow(unused_variables)]
54 static B: bool = false;
58 static I16: i16 = -16;
59 static I32: i32 = -32;
60 static I64: i64 = -64;
66 static F32: f32 = 2.5;
67 static F64: f64 = 3.5;
72 let a = (B, I, C, I8, I16, I32, I64, U, U8, U16, U32, U64, F32, F64);