Skip to content

Commit 1689d99

Browse files
brsongraydon
authored andcommitted
Add some nesting to the else-if test case
1 parent 5d98f55 commit 1689d99

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

src/test/run-pass/else-if.rs

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,27 @@ fn main() {
1616
check(true);
1717
}
1818

19-
}
19+
if (1 == 2) {
20+
check(false);
21+
} else if (2 == 2) {
22+
if (1 == 1) {
23+
check(true);
24+
} else {
25+
if (2 == 1) {
26+
check(false);
27+
} else {
28+
check(false);
29+
}
30+
}
31+
}
32+
33+
if (1 == 2) {
34+
check(false);
35+
} else {
36+
if (1 == 2) {
37+
check(false);
38+
} else {
39+
check(true);
40+
}
41+
}
42+
}

0 commit comments

Comments
 (0)