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

11 lines
174 B
Rust

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