2011-05-17 19:35:37 -05:00
|
|
|
// Make sure we drop the refs of the temporaries needed to return the
|
|
|
|
// values from the else if branch
|
|
|
|
fn main() {
|
2011-08-12 17:42:39 -05:00
|
|
|
let y: @uint = @10u;
|
2011-08-19 17:16:48 -05:00
|
|
|
let x = if false { y } else if true { y } else { y };
|
2011-08-12 17:14:17 -05:00
|
|
|
assert (*y == 10u);
|
|
|
|
}
|