diff options
| author | Michael Woerister <michaelwoerister@gmail> | 2013-06-28 17:11:50 +0200 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@gmail> | 2013-07-19 07:55:24 +0200 |
| commit | f424e931da4c04e410b003f48503acee92720ffb (patch) | |
| tree | 90e6cac9c518e7a83f1f2c293c4a862f5501c338 /src/test/debug-info | |
| parent | 36ea75683105447cb9f8338cd2a70493f4eb2c70 (diff) | |
debuginfo: Refactoring of composite type info generation done.
There is no more StructContext now. Better support for boxed vectors in there too.
Diffstat (limited to 'src/test/debug-info')
| -rw-r--r-- | src/test/debug-info/boxed-vec.rs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/test/debug-info/boxed-vec.rs b/src/test/debug-info/boxed-vec.rs new file mode 100644 index 00000000000..aeb081981c2 --- /dev/null +++ b/src/test/debug-info/boxed-vec.rs @@ -0,0 +1,34 @@ +// Copyright 2013 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// compile-flags:-Z extra-debug-info +// debugger:break zzz +// debugger:run +// debugger:finish + +// debugger:print managed->val.fill +// check:$1 = 24 +// debugger:print *((uint64_t[3]*)(managed->val.elements)) +// check:$2 = {7, 8, 9} + +// debugger:print unique->val.fill +// check:$3 = 32 +// debugger:print *((uint64_t[4]*)(unique->val.elements)) +// check:$4 = {10, 11, 12, 13} + +fn main() { + + let managed : @[i64] = @[7, 8, 9]; + let unique : ~[i64] = ~[10, 11, 12, 13]; + + zzz(); +} + +fn zzz() {()} \ No newline at end of file |
