Skip to content

Commit 1476fc8

Browse files
committed
---
yaml --- r: 5570 b: refs/heads/master c: 923aa47 h: refs/heads/master v: v3
1 parent 2c76491 commit 1476fc8

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 94db38a530c820005443fdac890f6d862f63e9d9
2+
refs/heads/master: 923aa4744eed0a2e82c89605221ac3aad616ee05

trunk/src/test/run-pass/unreachable-code.rs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,26 @@ fn ret_guard() {
3939
}
4040
}
4141

42+
fn rec_ret() { let _r = {c: ret}; }
43+
44+
fn vec_ret() { let _v = [1, 2, ret, 4]; }
45+
4246
fn fail_then_concat() {
4347
let x = [], y = [3];
4448
fail;
4549
x += y;
4650
"good" + "bye";
4751
}
4852

49-
fn main() {}
53+
fn main() {
54+
// Call the functions that don't fail.
55+
rec_ret();
56+
vec_ret();
57+
ret_ret();
58+
log_ret();
59+
call_id_2();
60+
call_id_3();
61+
call_id_4();
62+
bind_id_2();
63+
ret_guard();
64+
}

0 commit comments

Comments
 (0)