summary refs log tree commit diff
path: root/src/test/run-pass/morestack-address.rs
blob: 5779bd356e96c1b6a6a6577e48da7997c53678fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#[nolink]
#[abi = "rust-intrinsic"]
extern mod rusti {
    #[legacy_exports];
    fn morestack_addr() -> *();
}

fn main() {
    let addr = rusti::morestack_addr();
    assert addr.is_not_null();
    error!("%?", addr);
}