rust/src/test/run-pass/lazy-init.rs

13 lines
118 B
Rust
Raw Normal View History

2010-07-08 14:33:25 +00:00
fn foo(int x) {
log x;
}
fn main() {
let int x;
if (1 > 2) {
x = 12;
} else {
x = 10;
}
foo(x);
}