Skip to content

Commit

Permalink
Test for #924
Browse files Browse the repository at this point in the history
  • Loading branch information
jruderman committed Sep 27, 2011
1 parent 94db38a commit 923aa47
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/test/run-pass/unreachable-code.rs
Expand Up @@ -39,11 +39,26 @@ fn ret_guard() {
}
}

fn rec_ret() { let _r = {c: ret}; }

fn vec_ret() { let _v = [1, 2, ret, 4]; }

fn fail_then_concat() {
let x = [], y = [3];
fail;
x += y;
"good" + "bye";
}

fn main() {}
fn main() {
// Call the functions that don't fail.
rec_ret();
vec_ret();
ret_ret();
log_ret();
call_id_2();
call_id_3();
call_id_4();
bind_id_2();
ret_guard();
}

0 comments on commit 923aa47

Please sign in to comment.