diff options
Diffstat (limited to 'src/test/debuginfo/generic-function.rs')
| -rw-r--r-- | src/test/debuginfo/generic-function.rs | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/src/test/debuginfo/generic-function.rs b/src/test/debuginfo/generic-function.rs index 1777c168d9b..c3996929e7c 100644 --- a/src/test/debuginfo/generic-function.rs +++ b/src/test/debuginfo/generic-function.rs @@ -11,6 +11,9 @@ // ignore-android: FIXME(#10381) // compile-flags:-g + +// === GDB TESTS =================================================================================== + // gdb-command:rbreak zzz // gdb-command:run @@ -41,6 +44,36 @@ // gdb-check:$9 = {{5, {a = 6, b = 7.5}}, {{a = 6, b = 7.5}, 5}} // gdb-command:continue + +// === LLDB TESTS ================================================================================== + +// lldb-command:run + +// lldb-command:print *t0 +// lldb-check:[...]$0 = 1 +// lldb-command:print *t1 +// lldb-check:[...]$1 = 2.5 +// lldb-command:print ret +// lldb-check:[...]$2 = ((1, 2.5), (2.5, 1)) +// lldb-command:continue + +// lldb-command:print *t0 +// lldb-check:[...]$3 = 3.5 +// lldb-command:print *t1 +// lldb-check:[...]$4 = 4 +// lldb-command:print ret +// lldb-check:[...]$5 = ((3.5, 4), (4, 3.5)) +// lldb-command:continue + +// lldb-command:print *t0 +// lldb-check:[...]$6 = 5 +// lldb-command:print *t1 +// lldb-check:[...]$7 = Struct { a: 6, b: 7.5 } +// lldb-command:print ret +// lldb-check:[...]$8 = ((5, Struct { a: 6, b: 7.5 }), (Struct { a: 6, b: 7.5 }, 5)) +// lldb-command:continue + + #[deriving(Clone)] struct Struct { a: int, @@ -49,7 +82,7 @@ struct Struct { fn dup_tup<T0: Clone, T1: Clone>(t0: &T0, t1: &T1) -> ((T0, T1), (T1, T0)) { let ret = ((t0.clone(), t1.clone()), (t1.clone(), t0.clone())); - zzz(); + zzz(); // #break ret } |
