rust/src/test/run-pass/drop-on-ret.rs
2010-06-23 21:03:09 -07:00

13 lines
129 B
Rust

// -*- rust -*-
fn f() -> int {
if (true) {
let str s = "should not leak";
ret 1;
}
ret 0;
}
fn main() {
f();
}