1
Fork 0

tests: remove uses of Gc.

This commit is contained in:
Eduard Burtescu 2014-10-02 08:10:09 +03:00
parent aa59693565
commit 58bea31ca0
206 changed files with 322 additions and 3702 deletions

View file

@ -29,15 +29,6 @@
// gdb-command:print *ref_to_unnamed
// gdb-check:$4 = {x = 11, y = 24.5}
// gdb-command:print *managed_val_ref
// gdb-check:$5 = {x = 12, y = 25.5}
// gdb-command:print *managed_val_interior_ref_1
// gdb-check:$6 = 12
// gdb-command:print *managed_val_interior_ref_2
// gdb-check:$7 = 25.5
// gdb-command:print *unique_val_ref
// gdb-check:$8 = {x = 13, y = 26.5}
@ -64,15 +55,6 @@
// lldb-command:print *ref_to_unnamed
// lldb-check:[...]$3 = SomeStruct { x: 11, y: 24.5 }
// lldb-command:print *managed_val_ref
// lldb-check:[...]$4 = SomeStruct { x: 12, y: 25.5 }
// lldb-command:print *managed_val_interior_ref_1
// lldb-check:[...]$5 = 12
// lldb-command:print *managed_val_interior_ref_2
// lldb-check:[...]$6 = 25.5
// lldb-command:print *unique_val_ref
// lldb-check:[...]$7 = SomeStruct { x: 13, y: 26.5 }
@ -84,8 +66,6 @@
#![allow(unused_variable)]
use std::gc::GC;
struct SomeStruct {
x: int,
y: f64
@ -98,11 +78,6 @@ fn main() {
let stack_val_interior_ref_2: &f64 = &stack_val.y;
let ref_to_unnamed: &SomeStruct = &SomeStruct { x: 11, y: 24.5 };
let managed_val = box(GC) 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 = box SomeStruct { x: 13, y: 26.5 };
let unique_val_ref: &SomeStruct = &*unique_val;
let unique_val_interior_ref_1: &int = &unique_val.x;