rust/src/test/run-pass/intrinsic-frame-address.rs

14 lines
228 B
Rust

// xfail-fast
#[legacy_modes];
#[abi = "rust-intrinsic"]
extern mod rusti {
#[legacy_exports];
fn frame_address(f: fn(*u8));
}
fn main() {
do rusti::frame_address |addr| {
assert addr.is_not_null();
}
}