mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-18 01:40:46 +00:00
21 lines
392 B
Rust
21 lines
392 B
Rust
extern crate psm;
|
|
|
|
psm::psm_stack_information! {
|
|
yes {
|
|
fn main() {
|
|
println!("Stack is {:?} and is at {:p} currently",
|
|
psm::StackDirection::new(), psm::stack_pointer());
|
|
}
|
|
}
|
|
no {
|
|
fn main() {
|
|
eprintln!("Stack information not supported by this target");
|
|
}
|
|
}
|
|
}
|
|
|
|
#[test]
|
|
fn run_example() {
|
|
main();
|
|
}
|