2014-10-09 14:31:03 +00:00
|
|
|
//@ min-lldb-version: 310
|
2013-12-13 23:45:08 +00:00
|
|
|
|
2014-02-07 03:57:09 +00:00
|
|
|
//@ compile-flags:-g
|
2014-07-09 12:46:09 +00:00
|
|
|
|
|
|
|
// === GDB TESTS ===================================================================================
|
|
|
|
|
2014-04-24 09:35:48 +00: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 06:13:29 +00:00
|
|
|
// gdb-command:continue
|
2014-07-09 12:46:09 +00:00
|
|
|
|
|
|
|
// === LLDB TESTS ==================================================================================
|
|
|
|
|
|
|
|
// lldb-command:run
|
|
|
|
|
2024-03-15 14:05:57 +00:00
|
|
|
// lldb-command:v x
|
2024-03-10 13:55:58 +00:00
|
|
|
// lldbg-check:[...] 111102
|
2018-10-02 16:13:30 +00:00
|
|
|
// lldbr-check:(isize) x = 111102
|
2024-03-15 14:05:57 +00:00
|
|
|
// lldb-command:v y
|
2024-03-10 13:55:58 +00:00
|
|
|
// lldbg-check:[...] true
|
2018-10-02 16:13:30 +00:00
|
|
|
// lldbr-check:(bool) y = true
|
2014-07-09 12:46:09 +00:00
|
|
|
// lldb-command:continue
|
|
|
|
|
2024-03-15 14:05:57 +00:00
|
|
|
// lldb-command:v a
|
2024-03-10 13:55:58 +00:00
|
|
|
// lldbg-check:[...] 2000
|
2018-10-02 16:13:30 +00:00
|
|
|
// lldbr-check:(i32) a = 2000
|
2024-03-15 14:05:57 +00:00
|
|
|
// lldb-command:v b
|
2024-03-10 13:55:58 +00:00
|
|
|
// lldbg-check:[...] 3000
|
2018-10-02 16:13:30 +00:00
|
|
|
// lldbr-check:(i64) b = 3000
|
2014-07-09 12:46:09 +00:00
|
|
|
// lldb-command:continue
|
|
|
|
|
2014-12-03 22:48:18 +00:00
|
|
|
|
2015-09-19 20:33:47 +00:00
|
|
|
#![feature(omit_gdb_pretty_printer_section)]
|
2014-12-03 22:48:18 +00:00
|
|
|
#![omit_gdb_pretty_printer_section]
|
|
|
|
|
2013-06-25 19:55:02 +00:00
|
|
|
fn main() {
|
|
|
|
|
|
|
|
fun(111102, true);
|
|
|
|
nested(2000, 3000);
|
|
|
|
|
|
|
|
fn nested(a: i32, b: i64) -> (i32, i64) {
|
2014-07-09 12:46:09 +00:00
|
|
|
zzz(); // #break
|
2013-06-25 19:55:02 +00:00
|
|
|
(a, b)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-03-26 00:06:52 +00:00
|
|
|
fn fun(x: isize, y: bool) -> (isize, bool) {
|
2014-07-09 12:46:09 +00:00
|
|
|
zzz(); // #break
|
2013-06-25 19:55:02 +00:00
|
|
|
|
|
|
|
(x, y)
|
|
|
|
}
|
|
|
|
|
2014-07-09 12:46:09 +00:00
|
|
|
fn zzz() { () }
|