mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
test: Remove various box annihilator tests
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user