diff options
| author | Michael Woerister <michaelwoerister@gmail> | 2013-07-16 13:28:13 +0200 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@gmail> | 2013-07-19 07:58:28 +0200 |
| commit | e9baeab695ffb0483ce6bef872f5d85c636dd04a (patch) | |
| tree | 297b8d02d412d0a74e2e18eab636c66b29113950 /src/test/debug-info/managed-pointer-within-unique-vec.rs | |
| parent | b2aeb4b04bccf915444fa2a49ee3f3c33dec7097 (diff) | |
| download | rust-e9baeab695ffb0483ce6bef872f5d85c636dd04a.tar.gz rust-e9baeab695ffb0483ce6bef872f5d85c636dd04a.zip | |
debuginfo: Adapted DI generation to new memory layout of unique vecs.
Diffstat (limited to 'src/test/debug-info/managed-pointer-within-unique-vec.rs')
| -rw-r--r-- | src/test/debug-info/managed-pointer-within-unique-vec.rs | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/test/debug-info/managed-pointer-within-unique-vec.rs b/src/test/debug-info/managed-pointer-within-unique-vec.rs new file mode 100644 index 00000000000..e42631599a9 --- /dev/null +++ b/src/test/debug-info/managed-pointer-within-unique-vec.rs @@ -0,0 +1,37 @@ +// 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. + +// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249 + +// compile-flags:-Z extra-debug-info +// debugger:break zzz +// debugger:run +// debugger:finish + +// debugger:print unique->val.elements[0]->val +// check:$1 = 10 + +// debugger:print unique->val.elements[1]->val +// check:$2 = 11 + +// debugger:print unique->val.elements[2]->val +// check:$3 = 12 + +// debugger:print unique->val.elements[3]->val +// check:$4 = 13 + +fn main() { + + let unique: ~[@i64] = ~[@10, @11, @12, @13]; + + zzz(); +} + +fn zzz() {()} \ No newline at end of file |
