rust/src/test/run-pass/auto-deref-fn.rs
Brian Anderson c53402846e Remove all xfail-stage0 directives
While it is still technically possible to test stage 0, it is not part of any
of the main testing rules and maintaining xfail-stage0 is a chore. Nobody
should worry about how tests fare in stage0.
2011-08-03 10:55:59 -07:00

10 lines
229 B
Rust

fn add1(i: int) -> int { ret i + 1; }
fn main() {
let f = @add1;
let g = @f;
let h = @@@add1;
assert (f(5) == 6);
assert (g(8) == 9);
assert (h(0x1badd00d) == 0x1badd00e);
assert ((@add1)(42) == 43);
}