rust/src/test/run-pass/stable-addr-of.rs
Marijn Haverbeke 84019aa0dc Keep an explicit map of things that have to be spilled
This prevents us from spilling locals more than once.

Closes #2040
2012-03-23 16:08:01 +01:00

7 lines
98 B
Rust

// Issue #2040
fn main() {
let foo = 1;
assert ptr::addr_of(foo) == ptr::addr_of(foo);
}