Add some nesting to the else-if test case

This commit is contained in:
Brian Anderson 2011-03-14 19:57:12 -04:00 committed by Graydon Hoare
parent 5d98f55fcf
commit 1689d99965

View File

@ -16,4 +16,27 @@ fn main() {
check(true);
}
}
if (1 == 2) {
check(false);
} else if (2 == 2) {
if (1 == 1) {
check(true);
} else {
if (2 == 1) {
check(false);
} else {
check(false);
}
}
}
if (1 == 2) {
check(false);
} else {
if (1 == 2) {
check(false);
} else {
check(true);
}
}
}