]> git.lizzy.rs Git - rust.git/commitdiff
debuginfo: Renamed *reference-to-* test cases to *borrowed-*
authorMichael Woerister <michaelwoerister@gmail>
Fri, 28 Jun 2013 07:32:25 +0000 (09:32 +0200)
committerMichael Woerister <michaelwoerister@gmail>
Fri, 19 Jul 2013 05:53:57 +0000 (07:53 +0200)
src/test/debug-info/borrowed-basic.rs [new file with mode: 0644]
src/test/debug-info/borrowed-managed-basic.rs [new file with mode: 0644]
src/test/debug-info/borrowed-struct.rs [new file with mode: 0644]
src/test/debug-info/borrowed-tuple.rs [new file with mode: 0644]
src/test/debug-info/borrowed-unique-basic.rs [new file with mode: 0644]
src/test/debug-info/reference-to-basic.rs [deleted file]
src/test/debug-info/reference-to-managed-basic.rs [deleted file]
src/test/debug-info/reference-to-struct.rs [deleted file]
src/test/debug-info/reference-to-tuple.rs [deleted file]
src/test/debug-info/reference-to-unique-basic.rs [deleted file]

diff --git a/src/test/debug-info/borrowed-basic.rs b/src/test/debug-info/borrowed-basic.rs
new file mode 100644 (file)
index 0000000..dfd0fbf
--- /dev/null
@@ -0,0 +1,116 @@
+// 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
+
+// Caveats - gdb prints any 8-bit value (meaning rust i8 and u8 values)
+// as its numerical value along with its associated ASCII char, there
+// doesn't seem to be any way around this. Also, gdb doesn't know
+// about UTF-32 character encoding and will print a rust char as only
+// its numerical value.
+
+// compile-flags:-Z extra-debug-info
+// debugger:break zzz
+// debugger:run
+// debugger:finish
+// debugger:print *bool_ref
+// check:$1 = true
+
+// debugger:print *int_ref
+// check:$2 = -1
+
+// debugger:print *char_ref
+// check:$3 = 97
+
+// debugger:print *i8_ref
+// check:$4 = 68 'D'
+
+// debugger:print *i16_ref
+// check:$5 = -16
+
+// debugger:print *i32_ref
+// check:$6 = -32
+
+// debugger:print *i64_ref
+// check:$7 = -64
+
+// debugger:print *uint_ref
+// check:$8 = 1
+
+// debugger:print *u8_ref
+// check:$9 = 100 'd'
+
+// debugger:print *u16_ref
+// check:$10 = 16
+
+// debugger:print *u32_ref
+// check:$11 = 32
+
+// debugger:print *u64_ref
+// check:$12 = 64
+
+// debugger:print *float_ref
+// check:$13 = 1.5
+
+// debugger:print *f32_ref
+// check:$14 = 2.5
+
+// debugger:print *f64_ref
+// check:$15 = 3.5
+
+fn main() {
+    let bool_val: bool = true;
+    let bool_ref : &bool = &bool_val;
+
+    let int_val: int = -1;
+    let int_ref : &int = &int_val;
+
+    let char_val: char = 'a';
+    let char_ref : &char = &char_val;
+
+    let i8_val: i8 = 68;
+    let i8_ref : &i8 = &i8_val;
+
+    let i16_val: i16 = -16;
+    let i16_ref : &i16 = &i16_val;
+
+    let i32_val: i32 = -32;
+    let i32_ref : &i32 = &i32_val;
+
+    let uint_val: i64 = -64;
+    let i64_ref : &i64 = &uint_val;
+
+    let uint_val: uint = 1;
+    let uint_ref : &uint = &uint_val;
+
+    let u8_val: u8 = 100;
+    let u8_ref : &u8 = &u8_val;
+
+    let u16_val: u16 = 16;
+    let u16_ref : &u16 = &u16_val;
+
+    let u32_val: u32 = 32;
+    let u32_ref : &u32 = &u32_val;
+
+    let u64_val: u64 = 64;
+    let u64_ref : &u64 = &u64_val;
+
+    let float_val: float = 1.5;
+    let float_ref : &float = &float_val;
+
+    let f32_val: f32 = 2.5;
+    let f32_ref : &f32 = &f32_val;
+
+    let f64_val: f64 = 3.5;
+    let f64_ref : &f64 = &f64_val;
+    zzz();
+}
+
+fn zzz() {()}
\ No newline at end of file
diff --git a/src/test/debug-info/borrowed-managed-basic.rs b/src/test/debug-info/borrowed-managed-basic.rs
new file mode 100644 (file)
index 0000000..e3951c9
--- /dev/null
@@ -0,0 +1,114 @@
+// 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
+
+// Gdb doesn't know about UTF-32 character encoding and will print a rust char as only
+// its numerical value.
+
+// compile-flags:-Z extra-debug-info
+// debugger:break zzz
+// debugger:run
+// debugger:finish
+// debugger:print *bool_ref
+// check:$1 = true
+
+// debugger:print *int_ref
+// check:$2 = -1
+
+// debugger:print *char_ref
+// check:$3 = 97
+
+// debugger:print/d *i8_ref
+// check:$4 = 68
+
+// debugger:print *i16_ref
+// check:$5 = -16
+
+// debugger:print *i32_ref
+// check:$6 = -32
+
+// debugger:print *i64_ref
+// check:$7 = -64
+
+// debugger:print *uint_ref
+// check:$8 = 1
+
+// debugger:print/d *u8_ref
+// check:$9 = 100
+
+// debugger:print *u16_ref
+// check:$10 = 16
+
+// debugger:print *u32_ref
+// check:$11 = 32
+
+// debugger:print *u64_ref
+// check:$12 = 64
+
+// debugger:print *float_ref
+// check:$13 = 1.5
+
+// debugger:print *f32_ref
+// check:$14 = 2.5
+
+// debugger:print *f64_ref
+// check:$15 = 3.5
+
+
+fn main() {
+    let bool_box: @bool = @true;
+    let bool_ref : &bool = bool_box;
+
+    let int_box: @int = @-1;
+    let int_ref : &int = int_box;
+
+    let char_box: @char = @'a';
+    let char_ref : &char = char_box;
+
+    let i8_box: @i8 = @68;
+    let i8_ref : &i8 = i8_box;
+
+    let i16_box: @i16 = @-16;
+    let i16_ref : &i16 = i16_box;
+
+    let i32_box: @i32 = @-32;
+    let i32_ref : &i32 = i32_box;
+
+    let i64_box: @i64 = @-64;
+    let i64_ref : &i64 = i64_box;
+
+    let uint_box: @uint = @1;
+    let uint_ref : &uint = uint_box;
+
+    let u8_box: @u8 = @100;
+    let u8_ref : &u8 = u8_box;
+
+    let u16_box: @u16 = @16;
+    let u16_ref : &u16 = u16_box;
+
+    let u32_box: @u32 = @32;
+    let u32_ref : &u32 = u32_box;
+
+    let u64_box: @u64 = @64;
+    let u64_ref : &u64 = u64_box;
+
+    let float_box: @float = @1.5;
+    let float_ref : &float = float_box;
+
+    let f32_box: @f32 = @2.5;
+    let f32_ref : &f32 = f32_box;
+
+    let f64_box: @f64 = @3.5;
+    let f64_ref : &f64 = f64_box;
+    zzz();
+}
+
+fn zzz() {()}
\ No newline at end of file
diff --git a/src/test/debug-info/borrowed-struct.rs b/src/test/debug-info/borrowed-struct.rs
new file mode 100644 (file)
index 0000000..f00872c
--- /dev/null
@@ -0,0 +1,78 @@
+// 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
+
+// GDB doesn't know about UTF-32 character encoding and will print a rust char as only its numerical
+// value.
+
+// compile-flags:-Z extra-debug-info
+// debugger:break zzz
+// debugger:run
+// debugger:finish
+
+// debugger:print *stack_val_ref
+// check:$1 = {x = 10, y = 23.5}
+
+// debugger:print *stack_val_interior_ref_1
+// check:$2 = 10
+
+// debugger:print *stack_val_interior_ref_2
+// check:$3 = 23.5
+
+// debugger:print *ref_to_unnamed
+// check:$4 = {x = 11, y = 24.5}
+
+// debugger:print *managed_val_ref
+// check:$5 = {x = 12, y = 25.5}
+
+// debugger:print *managed_val_interior_ref_1
+// check:$6 = 12
+
+// debugger:print *managed_val_interior_ref_2
+// check:$7 = 25.5
+
+// debugger:print *unique_val_ref
+// check:$8 = {x = 13, y = 26.5}
+
+// debugger:print *unique_val_interior_ref_1
+// check:$9 = 13
+
+// debugger:print *unique_val_interior_ref_2
+// check:$10 = 26.5
+
+
+
+struct SomeStruct {
+    x: int,
+    y: f64
+}
+
+fn main() {
+    let stack_val: SomeStruct = SomeStruct { x: 10, y: 23.5 };
+    let stack_val_ref : &SomeStruct = &stack_val;
+    let stack_val_interior_ref_1 : &int = &stack_val.x;
+    let stack_val_interior_ref_2 : &f64 = &stack_val.y;
+    let ref_to_unnamed : &SomeStruct = &SomeStruct { x: 11, y: 24.5 };
+
+    let managed_val = @SomeStruct { x: 12, y: 25.5 };
+    let managed_val_ref : &SomeStruct = managed_val;
+    let managed_val_interior_ref_1 : &int = &managed_val.x;
+    let managed_val_interior_ref_2 : &f64 = &managed_val.y;
+
+    let unique_val = ~SomeStruct { x: 13, y: 26.5 };
+    let unique_val_ref : &SomeStruct = unique_val;
+    let unique_val_interior_ref_1 : &int = &unique_val.x;
+    let unique_val_interior_ref_2 : &f64 = &unique_val.y;
+
+    zzz();
+}
+
+fn zzz() {()}
\ No newline at end of file
diff --git a/src/test/debug-info/borrowed-tuple.rs b/src/test/debug-info/borrowed-tuple.rs
new file mode 100644 (file)
index 0000000..86d0218
--- /dev/null
@@ -0,0 +1,47 @@
+// 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
+
+// GDB doesn't know about UTF-32 character encoding and will print a rust char as only its numerical
+// value.
+
+// compile-flags:-Z extra-debug-info
+// debugger:break zzz
+// debugger:run
+// debugger:finish
+
+// debugger:print *stack_val_ref
+// check:$1 = {-14, -19}
+
+// debugger:print *ref_to_unnamed
+// check:$2 = {-15, -20}
+
+// debugger:print *managed_val_ref
+// check:$3 = {-16, -21}
+
+// debugger:print *unique_val_ref
+// check:$4 = {-17, -22}
+
+fn main() {
+    let stack_val: (i16, f32) = (-14, -19f32);
+    let stack_val_ref : &(i16, f32) = &stack_val;
+    let ref_to_unnamed : &(i16, f32) = &(-15, -20f32);
+
+    let managed_val : @(i16, f32) = @(-16, -21f32);
+    let managed_val_ref : &(i16, f32) = managed_val;
+
+    let unique_val: ~(i16, f32) = ~(-17, -22f32);
+    let unique_val_ref : &(i16, f32) = unique_val;
+
+    zzz();
+}
+
+fn zzz() {()}
\ No newline at end of file
diff --git a/src/test/debug-info/borrowed-unique-basic.rs b/src/test/debug-info/borrowed-unique-basic.rs
new file mode 100644 (file)
index 0000000..ce5b504
--- /dev/null
@@ -0,0 +1,115 @@
+// 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
+
+// Gdb doesn't know
+// about UTF-32 character encoding and will print a rust char as only
+// its numerical value.
+
+// compile-flags:-Z extra-debug-info
+// debugger:break zzz
+// debugger:run
+// debugger:finish
+// debugger:print *bool_ref
+// check:$1 = true
+
+// debugger:print *int_ref
+// check:$2 = -1
+
+// debugger:print *char_ref
+// check:$3 = 97
+
+// debugger:print/d *i8_ref
+// check:$4 = 68
+
+// debugger:print *i16_ref
+// check:$5 = -16
+
+// debugger:print *i32_ref
+// check:$6 = -32
+
+// debugger:print *i64_ref
+// check:$7 = -64
+
+// debugger:print *uint_ref
+// check:$8 = 1
+
+// debugger:print/d *u8_ref
+// check:$9 = 100
+
+// debugger:print *u16_ref
+// check:$10 = 16
+
+// debugger:print *u32_ref
+// check:$11 = 32
+
+// debugger:print *u64_ref
+// check:$12 = 64
+
+// debugger:print *float_ref
+// check:$13 = 1.5
+
+// debugger:print *f32_ref
+// check:$14 = 2.5
+
+// debugger:print *f64_ref
+// check:$15 = 3.5
+
+
+fn main() {
+    let bool_box: ~bool = ~true;
+    let bool_ref : &bool = bool_box;
+
+    let int_box: ~int = ~-1;
+    let int_ref : &int = int_box;
+
+    let char_box: ~char = ~'a';
+    let char_ref : &char = char_box;
+
+    let i8_box: ~i8 = ~68;
+    let i8_ref : &i8 = i8_box;
+
+    let i16_box: ~i16 = ~-16;
+    let i16_ref : &i16 = i16_box;
+
+    let i32_box: ~i32 = ~-32;
+    let i32_ref : &i32 = i32_box;
+
+    let i64_box: ~i64 = ~-64;
+    let i64_ref : &i64 = i64_box;
+
+    let uint_box: ~uint = ~1;
+    let uint_ref : &uint = uint_box;
+
+    let u8_box: ~u8 = ~100;
+    let u8_ref : &u8 = u8_box;
+
+    let u16_box: ~u16 = ~16;
+    let u16_ref : &u16 = u16_box;
+
+    let u32_box: ~u32 = ~32;
+    let u32_ref : &u32 = u32_box;
+
+    let u64_box: ~u64 = ~64;
+    let u64_ref : &u64 = u64_box;
+
+    let float_box: ~float = ~1.5;
+    let float_ref : &float = float_box;
+
+    let f32_box: ~f32 = ~2.5;
+    let f32_ref : &f32 = f32_box;
+
+    let f64_box: ~f64 = ~3.5;
+    let f64_ref : &f64 = f64_box;
+    zzz();
+}
+
+fn zzz() {()}
\ No newline at end of file
diff --git a/src/test/debug-info/reference-to-basic.rs b/src/test/debug-info/reference-to-basic.rs
deleted file mode 100644 (file)
index dfd0fbf..0000000
+++ /dev/null
@@ -1,116 +0,0 @@
-// 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
-
-// Caveats - gdb prints any 8-bit value (meaning rust i8 and u8 values)
-// as its numerical value along with its associated ASCII char, there
-// doesn't seem to be any way around this. Also, gdb doesn't know
-// about UTF-32 character encoding and will print a rust char as only
-// its numerical value.
-
-// compile-flags:-Z extra-debug-info
-// debugger:break zzz
-// debugger:run
-// debugger:finish
-// debugger:print *bool_ref
-// check:$1 = true
-
-// debugger:print *int_ref
-// check:$2 = -1
-
-// debugger:print *char_ref
-// check:$3 = 97
-
-// debugger:print *i8_ref
-// check:$4 = 68 'D'
-
-// debugger:print *i16_ref
-// check:$5 = -16
-
-// debugger:print *i32_ref
-// check:$6 = -32
-
-// debugger:print *i64_ref
-// check:$7 = -64
-
-// debugger:print *uint_ref
-// check:$8 = 1
-
-// debugger:print *u8_ref
-// check:$9 = 100 'd'
-
-// debugger:print *u16_ref
-// check:$10 = 16
-
-// debugger:print *u32_ref
-// check:$11 = 32
-
-// debugger:print *u64_ref
-// check:$12 = 64
-
-// debugger:print *float_ref
-// check:$13 = 1.5
-
-// debugger:print *f32_ref
-// check:$14 = 2.5
-
-// debugger:print *f64_ref
-// check:$15 = 3.5
-
-fn main() {
-    let bool_val: bool = true;
-    let bool_ref : &bool = &bool_val;
-
-    let int_val: int = -1;
-    let int_ref : &int = &int_val;
-
-    let char_val: char = 'a';
-    let char_ref : &char = &char_val;
-
-    let i8_val: i8 = 68;
-    let i8_ref : &i8 = &i8_val;
-
-    let i16_val: i16 = -16;
-    let i16_ref : &i16 = &i16_val;
-
-    let i32_val: i32 = -32;
-    let i32_ref : &i32 = &i32_val;
-
-    let uint_val: i64 = -64;
-    let i64_ref : &i64 = &uint_val;
-
-    let uint_val: uint = 1;
-    let uint_ref : &uint = &uint_val;
-
-    let u8_val: u8 = 100;
-    let u8_ref : &u8 = &u8_val;
-
-    let u16_val: u16 = 16;
-    let u16_ref : &u16 = &u16_val;
-
-    let u32_val: u32 = 32;
-    let u32_ref : &u32 = &u32_val;
-
-    let u64_val: u64 = 64;
-    let u64_ref : &u64 = &u64_val;
-
-    let float_val: float = 1.5;
-    let float_ref : &float = &float_val;
-
-    let f32_val: f32 = 2.5;
-    let f32_ref : &f32 = &f32_val;
-
-    let f64_val: f64 = 3.5;
-    let f64_ref : &f64 = &f64_val;
-    zzz();
-}
-
-fn zzz() {()}
\ No newline at end of file
diff --git a/src/test/debug-info/reference-to-managed-basic.rs b/src/test/debug-info/reference-to-managed-basic.rs
deleted file mode 100644 (file)
index e3951c9..0000000
+++ /dev/null
@@ -1,114 +0,0 @@
-// 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
-
-// Gdb doesn't know about UTF-32 character encoding and will print a rust char as only
-// its numerical value.
-
-// compile-flags:-Z extra-debug-info
-// debugger:break zzz
-// debugger:run
-// debugger:finish
-// debugger:print *bool_ref
-// check:$1 = true
-
-// debugger:print *int_ref
-// check:$2 = -1
-
-// debugger:print *char_ref
-// check:$3 = 97
-
-// debugger:print/d *i8_ref
-// check:$4 = 68
-
-// debugger:print *i16_ref
-// check:$5 = -16
-
-// debugger:print *i32_ref
-// check:$6 = -32
-
-// debugger:print *i64_ref
-// check:$7 = -64
-
-// debugger:print *uint_ref
-// check:$8 = 1
-
-// debugger:print/d *u8_ref
-// check:$9 = 100
-
-// debugger:print *u16_ref
-// check:$10 = 16
-
-// debugger:print *u32_ref
-// check:$11 = 32
-
-// debugger:print *u64_ref
-// check:$12 = 64
-
-// debugger:print *float_ref
-// check:$13 = 1.5
-
-// debugger:print *f32_ref
-// check:$14 = 2.5
-
-// debugger:print *f64_ref
-// check:$15 = 3.5
-
-
-fn main() {
-    let bool_box: @bool = @true;
-    let bool_ref : &bool = bool_box;
-
-    let int_box: @int = @-1;
-    let int_ref : &int = int_box;
-
-    let char_box: @char = @'a';
-    let char_ref : &char = char_box;
-
-    let i8_box: @i8 = @68;
-    let i8_ref : &i8 = i8_box;
-
-    let i16_box: @i16 = @-16;
-    let i16_ref : &i16 = i16_box;
-
-    let i32_box: @i32 = @-32;
-    let i32_ref : &i32 = i32_box;
-
-    let i64_box: @i64 = @-64;
-    let i64_ref : &i64 = i64_box;
-
-    let uint_box: @uint = @1;
-    let uint_ref : &uint = uint_box;
-
-    let u8_box: @u8 = @100;
-    let u8_ref : &u8 = u8_box;
-
-    let u16_box: @u16 = @16;
-    let u16_ref : &u16 = u16_box;
-
-    let u32_box: @u32 = @32;
-    let u32_ref : &u32 = u32_box;
-
-    let u64_box: @u64 = @64;
-    let u64_ref : &u64 = u64_box;
-
-    let float_box: @float = @1.5;
-    let float_ref : &float = float_box;
-
-    let f32_box: @f32 = @2.5;
-    let f32_ref : &f32 = f32_box;
-
-    let f64_box: @f64 = @3.5;
-    let f64_ref : &f64 = f64_box;
-    zzz();
-}
-
-fn zzz() {()}
\ No newline at end of file
diff --git a/src/test/debug-info/reference-to-struct.rs b/src/test/debug-info/reference-to-struct.rs
deleted file mode 100644 (file)
index f00872c..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-// 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
-
-// GDB doesn't know about UTF-32 character encoding and will print a rust char as only its numerical
-// value.
-
-// compile-flags:-Z extra-debug-info
-// debugger:break zzz
-// debugger:run
-// debugger:finish
-
-// debugger:print *stack_val_ref
-// check:$1 = {x = 10, y = 23.5}
-
-// debugger:print *stack_val_interior_ref_1
-// check:$2 = 10
-
-// debugger:print *stack_val_interior_ref_2
-// check:$3 = 23.5
-
-// debugger:print *ref_to_unnamed
-// check:$4 = {x = 11, y = 24.5}
-
-// debugger:print *managed_val_ref
-// check:$5 = {x = 12, y = 25.5}
-
-// debugger:print *managed_val_interior_ref_1
-// check:$6 = 12
-
-// debugger:print *managed_val_interior_ref_2
-// check:$7 = 25.5
-
-// debugger:print *unique_val_ref
-// check:$8 = {x = 13, y = 26.5}
-
-// debugger:print *unique_val_interior_ref_1
-// check:$9 = 13
-
-// debugger:print *unique_val_interior_ref_2
-// check:$10 = 26.5
-
-
-
-struct SomeStruct {
-    x: int,
-    y: f64
-}
-
-fn main() {
-    let stack_val: SomeStruct = SomeStruct { x: 10, y: 23.5 };
-    let stack_val_ref : &SomeStruct = &stack_val;
-    let stack_val_interior_ref_1 : &int = &stack_val.x;
-    let stack_val_interior_ref_2 : &f64 = &stack_val.y;
-    let ref_to_unnamed : &SomeStruct = &SomeStruct { x: 11, y: 24.5 };
-
-    let managed_val = @SomeStruct { x: 12, y: 25.5 };
-    let managed_val_ref : &SomeStruct = managed_val;
-    let managed_val_interior_ref_1 : &int = &managed_val.x;
-    let managed_val_interior_ref_2 : &f64 = &managed_val.y;
-
-    let unique_val = ~SomeStruct { x: 13, y: 26.5 };
-    let unique_val_ref : &SomeStruct = unique_val;
-    let unique_val_interior_ref_1 : &int = &unique_val.x;
-    let unique_val_interior_ref_2 : &f64 = &unique_val.y;
-
-    zzz();
-}
-
-fn zzz() {()}
\ No newline at end of file
diff --git a/src/test/debug-info/reference-to-tuple.rs b/src/test/debug-info/reference-to-tuple.rs
deleted file mode 100644 (file)
index 86d0218..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-// 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
-
-// GDB doesn't know about UTF-32 character encoding and will print a rust char as only its numerical
-// value.
-
-// compile-flags:-Z extra-debug-info
-// debugger:break zzz
-// debugger:run
-// debugger:finish
-
-// debugger:print *stack_val_ref
-// check:$1 = {-14, -19}
-
-// debugger:print *ref_to_unnamed
-// check:$2 = {-15, -20}
-
-// debugger:print *managed_val_ref
-// check:$3 = {-16, -21}
-
-// debugger:print *unique_val_ref
-// check:$4 = {-17, -22}
-
-fn main() {
-    let stack_val: (i16, f32) = (-14, -19f32);
-    let stack_val_ref : &(i16, f32) = &stack_val;
-    let ref_to_unnamed : &(i16, f32) = &(-15, -20f32);
-
-    let managed_val : @(i16, f32) = @(-16, -21f32);
-    let managed_val_ref : &(i16, f32) = managed_val;
-
-    let unique_val: ~(i16, f32) = ~(-17, -22f32);
-    let unique_val_ref : &(i16, f32) = unique_val;
-
-    zzz();
-}
-
-fn zzz() {()}
\ No newline at end of file
diff --git a/src/test/debug-info/reference-to-unique-basic.rs b/src/test/debug-info/reference-to-unique-basic.rs
deleted file mode 100644 (file)
index ce5b504..0000000
+++ /dev/null
@@ -1,115 +0,0 @@
-// 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
-
-// Gdb doesn't know
-// about UTF-32 character encoding and will print a rust char as only
-// its numerical value.
-
-// compile-flags:-Z extra-debug-info
-// debugger:break zzz
-// debugger:run
-// debugger:finish
-// debugger:print *bool_ref
-// check:$1 = true
-
-// debugger:print *int_ref
-// check:$2 = -1
-
-// debugger:print *char_ref
-// check:$3 = 97
-
-// debugger:print/d *i8_ref
-// check:$4 = 68
-
-// debugger:print *i16_ref
-// check:$5 = -16
-
-// debugger:print *i32_ref
-// check:$6 = -32
-
-// debugger:print *i64_ref
-// check:$7 = -64
-
-// debugger:print *uint_ref
-// check:$8 = 1
-
-// debugger:print/d *u8_ref
-// check:$9 = 100
-
-// debugger:print *u16_ref
-// check:$10 = 16
-
-// debugger:print *u32_ref
-// check:$11 = 32
-
-// debugger:print *u64_ref
-// check:$12 = 64
-
-// debugger:print *float_ref
-// check:$13 = 1.5
-
-// debugger:print *f32_ref
-// check:$14 = 2.5
-
-// debugger:print *f64_ref
-// check:$15 = 3.5
-
-
-fn main() {
-    let bool_box: ~bool = ~true;
-    let bool_ref : &bool = bool_box;
-
-    let int_box: ~int = ~-1;
-    let int_ref : &int = int_box;
-
-    let char_box: ~char = ~'a';
-    let char_ref : &char = char_box;
-
-    let i8_box: ~i8 = ~68;
-    let i8_ref : &i8 = i8_box;
-
-    let i16_box: ~i16 = ~-16;
-    let i16_ref : &i16 = i16_box;
-
-    let i32_box: ~i32 = ~-32;
-    let i32_ref : &i32 = i32_box;
-
-    let i64_box: ~i64 = ~-64;
-    let i64_ref : &i64 = i64_box;
-
-    let uint_box: ~uint = ~1;
-    let uint_ref : &uint = uint_box;
-
-    let u8_box: ~u8 = ~100;
-    let u8_ref : &u8 = u8_box;
-
-    let u16_box: ~u16 = ~16;
-    let u16_ref : &u16 = u16_box;
-
-    let u32_box: ~u32 = ~32;
-    let u32_ref : &u32 = u32_box;
-
-    let u64_box: ~u64 = ~64;
-    let u64_ref : &u64 = u64_box;
-
-    let float_box: ~float = ~1.5;
-    let float_ref : &float = float_box;
-
-    let f32_box: ~f32 = ~2.5;
-    let f32_ref : &f32 = f32_box;
-
-    let f64_box: ~f64 = ~3.5;
-    let f64_ref : &f64 = f64_box;
-    zzz();
-}
-
-fn zzz() {()}
\ No newline at end of file