2014-10-09 09:31:03 -05:00
|
|
|
// min-lldb-version: 310
|
2018-01-03 12:24:25 -06:00
|
|
|
// ignore-gdb // Test temporarily ignored due to debuginfo tests being disabled, see PR 47155
|
2014-04-24 04:35:48 -05:00
|
|
|
|
|
|
|
// compile-flags:-g
|
|
|
|
// gdb-command:run
|
2016-10-25 16:32:04 -05:00
|
|
|
// gdbg-command:whatis 'basic_types_globals_metadata::B'
|
|
|
|
// gdbr-command:whatis basic_types_globals_metadata::B
|
2014-04-24 04:35:48 -05:00
|
|
|
// gdb-check:type = bool
|
2016-10-25 16:32:04 -05:00
|
|
|
// gdbg-command:whatis 'basic_types_globals_metadata::I'
|
|
|
|
// gdbr-command:whatis basic_types_globals_metadata::I
|
2014-12-05 20:12:25 -06:00
|
|
|
// gdb-check:type = isize
|
2016-10-25 16:32:04 -05:00
|
|
|
// gdbg-command:whatis 'basic_types_globals_metadata::C'
|
|
|
|
// gdbr-command:whatis basic_types_globals_metadata::C
|
2014-04-24 04:35:48 -05:00
|
|
|
// gdb-check:type = char
|
2016-10-25 16:32:04 -05:00
|
|
|
// gdbg-command:whatis 'basic_types_globals_metadata::I8'
|
|
|
|
// gdbr-command:whatis basic_types_globals_metadata::I8
|
2014-04-24 04:35:48 -05:00
|
|
|
// gdb-check:type = i8
|
2016-10-25 16:32:04 -05:00
|
|
|
// gdbg-command:whatis 'basic_types_globals_metadata::I16'
|
|
|
|
// gdbr-command:whatis basic_types_globals_metadata::I16
|
2014-04-24 04:35:48 -05:00
|
|
|
// gdb-check:type = i16
|
2016-10-25 16:32:04 -05:00
|
|
|
// gdbg-command:whatis 'basic_types_globals_metadata::I32'
|
|
|
|
// gdbr-command:whatis basic_types_globals_metadata::I32
|
2014-04-24 04:35:48 -05:00
|
|
|
// gdb-check:type = i32
|
2016-10-25 16:32:04 -05:00
|
|
|
// gdbg-command:whatis 'basic_types_globals_metadata::I64'
|
|
|
|
// gdbr-command:whatis basic_types_globals_metadata::I64
|
2014-04-24 04:35:48 -05:00
|
|
|
// gdb-check:type = i64
|
2016-10-25 16:32:04 -05:00
|
|
|
// gdbg-command:whatis 'basic_types_globals_metadata::U'
|
|
|
|
// gdbr-command:whatis basic_types_globals_metadata::U
|
2014-12-05 20:12:25 -06:00
|
|
|
// gdb-check:type = usize
|
2016-10-25 16:32:04 -05:00
|
|
|
// gdbg-command:whatis 'basic_types_globals_metadata::U8'
|
|
|
|
// gdbr-command:whatis basic_types_globals_metadata::U8
|
2014-04-24 04:35:48 -05:00
|
|
|
// gdb-check:type = u8
|
2016-10-25 16:32:04 -05:00
|
|
|
// gdbg-command:whatis 'basic_types_globals_metadata::U16'
|
|
|
|
// gdbr-command:whatis basic_types_globals_metadata::U16
|
2014-04-24 04:35:48 -05:00
|
|
|
// gdb-check:type = u16
|
2016-10-25 16:32:04 -05:00
|
|
|
// gdbg-command:whatis 'basic_types_globals_metadata::U32'
|
|
|
|
// gdbr-command:whatis basic_types_globals_metadata::U32
|
2014-04-24 04:35:48 -05:00
|
|
|
// gdb-check:type = u32
|
2016-10-25 16:32:04 -05:00
|
|
|
// gdbg-command:whatis 'basic_types_globals_metadata::U64'
|
|
|
|
// gdbr-command:whatis basic_types_globals_metadata::U64
|
2014-04-24 04:35:48 -05:00
|
|
|
// gdb-check:type = u64
|
2016-10-25 16:32:04 -05:00
|
|
|
// gdbg-command:whatis 'basic_types_globals_metadata::F32'
|
|
|
|
// gdbr-command:whatis basic_types_globals_metadata::F32
|
2014-04-24 04:35:48 -05:00
|
|
|
// gdb-check:type = f32
|
2016-10-25 16:32:04 -05:00
|
|
|
// gdbg-command:whatis 'basic_types_globals_metadata::F64'
|
|
|
|
// gdbr-command:whatis basic_types_globals_metadata::F64
|
2014-04-24 04:35:48 -05:00
|
|
|
// gdb-check:type = f64
|
|
|
|
// gdb-command:continue
|
|
|
|
|
2014-10-27 17:37:07 -05:00
|
|
|
#![allow(unused_variables)]
|
2014-04-24 04:35:48 -05:00
|
|
|
#![allow(dead_code)]
|
2015-09-19 15:33:47 -05:00
|
|
|
#![feature(omit_gdb_pretty_printer_section)]
|
2014-12-03 16:48:18 -06:00
|
|
|
#![omit_gdb_pretty_printer_section]
|
2014-04-24 04:35:48 -05:00
|
|
|
|
2015-02-15 08:02:11 -06:00
|
|
|
// N.B. These are `mut` only so they don't constant fold away.
|
|
|
|
static mut B: bool = false;
|
2015-03-25 19:06:52 -05:00
|
|
|
static mut I: isize = -1;
|
2015-02-15 08:02:11 -06:00
|
|
|
static mut C: char = 'a';
|
|
|
|
static mut I8: i8 = 68;
|
|
|
|
static mut I16: i16 = -16;
|
|
|
|
static mut I32: i32 = -32;
|
|
|
|
static mut I64: i64 = -64;
|
2015-03-25 19:06:52 -05:00
|
|
|
static mut U: usize = 1;
|
2015-02-15 08:02:11 -06:00
|
|
|
static mut U8: u8 = 100;
|
|
|
|
static mut U16: u16 = 16;
|
|
|
|
static mut U32: u32 = 32;
|
|
|
|
static mut U64: u64 = 64;
|
|
|
|
static mut F32: f32 = 2.5;
|
|
|
|
static mut F64: f64 = 3.5;
|
2014-04-24 04:35:48 -05:00
|
|
|
|
|
|
|
fn main() {
|
2014-10-29 01:13:29 -05:00
|
|
|
_zzz(); // #break
|
2014-04-24 04:35:48 -05:00
|
|
|
|
2015-02-15 08:02:11 -06:00
|
|
|
let a = unsafe { (B, I, C, I8, I16, I32, I64, U, U8, U16, U32, U64, F32, F64) };
|
2014-04-24 04:35:48 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn _zzz() {()}
|