test: Remove various box annihilator tests
This commit is contained in:
parent
42b6037297
commit
954eee5310
3 changed files with 0 additions and 36 deletions
|
|
@ -1,12 +0,0 @@
|
|||
extern mod rustrt {
|
||||
#[legacy_exports];
|
||||
fn rust_annihilate_box(ptr: *uint);
|
||||
}
|
||||
|
||||
fn main() {
|
||||
unsafe {
|
||||
let x = @3;
|
||||
let p: *uint = cast::transmute(x);
|
||||
rustrt::rust_annihilate_box(p);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
extern mod rustrt {
|
||||
#[legacy_exports];
|
||||
fn rust_annihilate_box(ptr: *uint);
|
||||
}
|
||||
|
||||
fn main() {
|
||||
unsafe {
|
||||
let x = ~[~"a", ~"b", ~"c"];
|
||||
let p: *uint = cast::transmute(x);
|
||||
rustrt::rust_annihilate_box(p);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
extern mod rustrt {
|
||||
#[legacy_exports];
|
||||
fn rust_annihilate_box(ptr: *uint);
|
||||
}
|
||||
|
||||
fn main() {
|
||||
unsafe {
|
||||
let x = ~3;
|
||||
let p: *uint = cast::transmute(x);
|
||||
rustrt::rust_annihilate_box(p);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue