test: Fix broken resource-cycle.rs. r=tinderbox

This commit is contained in:
Patrick Walton 2012-11-29 12:05:56 -08:00
parent 9678abedec
commit 3beff12309

View File

@ -8,7 +8,7 @@ impl r : Drop {
fn finalize(&self) {
unsafe {
debug!("r's dtor: self = %x, self.v = %x, self.v's value = %x",
cast::reinterpret_cast::<*r, uint>(&ptr::addr_of(&self)),
cast::reinterpret_cast::<*r, uint>(&ptr::addr_of(self)),
cast::reinterpret_cast::<**int, uint>(&ptr::addr_of(&(self.v))),
cast::reinterpret_cast::<*int, uint>(&self.v));
let v2: ~int = cast::reinterpret_cast(&self.v);