diff options
| author | Michael Woerister <michaelwoerister@gmail> | 2013-08-13 12:52:39 +0200 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@gmail> | 2013-08-16 22:30:42 +0200 |
| commit | 6c49c2df763f8cf1817bc651582deba8bb35a29d (patch) | |
| tree | 2408cb65af62a117ab1289798d4a78194e3eb68b /src/test/debug-info | |
| parent | 907633b1bfc757cf9a415e4573098f58881469f2 (diff) | |
| download | rust-6c49c2df763f8cf1817bc651582deba8bb35a29d.tar.gz rust-6c49c2df763f8cf1817bc651582deba8bb35a29d.zip | |
debuginfo: Properly handle monomorphization of generic functions.
Diffstat (limited to 'src/test/debug-info')
| -rw-r--r-- | src/test/debug-info/generic-function.rs | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/test/debug-info/generic-function.rs b/src/test/debug-info/generic-function.rs index 8271847f9d0..c3b48f27b73 100644 --- a/src/test/debug-info/generic-function.rs +++ b/src/test/debug-info/generic-function.rs @@ -32,6 +32,21 @@ // check:$6 = {{3.5, 4}, {4, 3.5}} // debugger:continue +// debugger:finish +// debugger:print *t0 +// check:$7 = 5 +// debugger:print *t1 +// check:$8 = {a = 6, b = 7.5} +// debugger:print ret +// check:$9 = {{5, {a = 6, b = 7.5}}, {{a = 6, b = 7.5}, 5}} +// debugger:continue + +#[deriving(Clone)] +struct Struct { + a: int, + b: float +} + 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(); @@ -42,7 +57,7 @@ fn main() { let _ = dup_tup(&1, &2.5); let _ = dup_tup(&3.5, &4_u16); - + let _ = dup_tup(&5, &Struct { a: 6, b: 7.5 }); } fn zzz() {()} |
