diff options
Diffstat (limited to 'src/test/debuginfo/function-arguments.rs')
| -rw-r--r-- | src/test/debuginfo/function-arguments.rs | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/src/test/debuginfo/function-arguments.rs b/src/test/debuginfo/function-arguments.rs index e65b9a2519d..69bd5ae1d6c 100644 --- a/src/test/debuginfo/function-arguments.rs +++ b/src/test/debuginfo/function-arguments.rs @@ -11,6 +11,9 @@ // ignore-android: FIXME(#10381) // compile-flags:-g + +// === GDB TESTS =================================================================================== + // gdb-command:rbreak zzz // gdb-command:run // gdb-command:finish @@ -28,21 +31,38 @@ // gdb-command:print b // gdb-check:$4 = 3000 + +// === LLDB TESTS ================================================================================== + +// lldb-command:run + +// lldb-command:print x +// lldb-check:[...]$0 = 111102 +// lldb-command:print y +// lldb-check:[...]$1 = true +// lldb-command:continue + +// lldb-command:print a +// lldb-check:[...]$2 = 2000 +// lldb-command:print b +// lldb-check:[...]$3 = 3000 +// lldb-command:continue + fn main() { fun(111102, true); nested(2000, 3000); fn nested(a: i32, b: i64) -> (i32, i64) { - zzz(); + zzz(); // #break (a, b) } } fn fun(x: int, y: bool) -> (int, bool) { - zzz(); + zzz(); // #break (x, y) } -fn zzz() {()} +fn zzz() { () } |
