2014-10-09 16:31:03 +02:00
|
|
|
// min-lldb-version: 310
|
2013-12-13 15:45:08 -08:00
|
|
|
|
2014-02-06 19:57:09 -08:00
|
|
|
// compile-flags:-g
|
2014-07-09 14:46:09 +02:00
|
|
|
|
|
|
|
// === GDB TESTS ===================================================================================
|
|
|
|
|
2014-04-24 11:35:48 +02:00
|
|
|
// gdb-command:run
|
|
|
|
|
|
|
|
// gdb-command:print x
|
|
|
|
// gdb-check:$1 = 111102
|
|
|
|
// gdb-command:print y
|
|
|
|
// gdb-check:$2 = true
|
|
|
|
// gdb-command:continue
|
|
|
|
|
|
|
|
// gdb-command:print a
|
|
|
|
// gdb-check:$3 = 2000
|
|
|
|
// gdb-command:print b
|
|
|
|
// gdb-check:$4 = 3000
|
2014-10-29 10:13:29 +04:00
|
|
|
// gdb-command:continue
|
2014-07-09 14:46:09 +02:00
|
|
|
|
|
|
|
// === LLDB TESTS ==================================================================================
|
|
|
|
|
|
|
|
// lldb-command:run
|
|
|
|
|
|
|
|
// lldb-command:print x
|
2018-10-02 10:13:30 -06:00
|
|
|
// lldbg-check:[...]$0 = 111102
|
|
|
|
// lldbr-check:(isize) x = 111102
|
2014-07-09 14:46:09 +02:00
|
|
|
// lldb-command:print y
|
2018-10-02 10:13:30 -06:00
|
|
|
// lldbg-check:[...]$1 = true
|
|
|
|
// lldbr-check:(bool) y = true
|
2014-07-09 14:46:09 +02:00
|
|
|
// lldb-command:continue
|
|
|
|
|
|
|
|
// lldb-command:print a
|
2018-10-02 10:13:30 -06:00
|
|
|
// lldbg-check:[...]$2 = 2000
|
|
|
|
// lldbr-check:(i32) a = 2000
|
2014-07-09 14:46:09 +02:00
|
|
|
// lldb-command:print b
|
2018-10-02 10:13:30 -06:00
|
|
|
// lldbg-check:[...]$3 = 3000
|
|
|
|
// lldbr-check:(i64) b = 3000
|
2014-07-09 14:46:09 +02:00
|
|
|
// lldb-command:continue
|
|
|
|
|
2014-12-03 14:48:18 -08:00
|
|
|
|
2015-09-19 16:33:47 -04:00
|
|
|
#![feature(omit_gdb_pretty_printer_section)]
|
2014-12-03 14:48:18 -08:00
|
|
|
#![omit_gdb_pretty_printer_section]
|
|
|
|
|
2013-06-25 21:55:02 +02:00
|
|
|
fn main() {
|
|
|
|
|
|
|
|
fun(111102, true);
|
|
|
|
nested(2000, 3000);
|
|
|
|
|
|
|
|
fn nested(a: i32, b: i64) -> (i32, i64) {
|
2014-07-09 14:46:09 +02:00
|
|
|
zzz(); // #break
|
2013-06-25 21:55:02 +02:00
|
|
|
(a, b)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-03-25 17:06:52 -07:00
|
|
|
fn fun(x: isize, y: bool) -> (isize, bool) {
|
2014-07-09 14:46:09 +02:00
|
|
|
zzz(); // #break
|
2013-06-25 21:55:02 +02:00
|
|
|
|
|
|
|
(x, y)
|
|
|
|
}
|
|
|
|
|
2014-07-09 14:46:09 +02:00
|
|
|
fn zzz() { () }
|