new liveness pass to supercede last_use / initedness

This commit is contained in:
Niko Matsakis
2012-05-19 05:52:01 -07:00
parent a3be0b1054
commit 30b47649ea
89 changed files with 2104 additions and 162 deletions

View File

@@ -0,0 +1,11 @@
pure fn is_even(i: int) -> bool { (i%2) == 0 }
fn even(i: int) : is_even(i) -> int { i }
fn force(f: fn()) { f(); }
fn main() {
let x: int = 4;
force(fn&() {
even(x); //! ERROR unsatisfied precondition
});
}