aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/4-statements/if_else_chain.zc
blob: 292a3b039587069aa8b2dd68a61677019f5bf369 (plain) (blame)
1
2
3
4
5
6
7
8
9
// expect: 3/
// spec 4.3
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() {
	int n = 7;
	if (n < 3) pn(1); else if (n < 6) pn(2); else if (n < 9) pn(3); else pn(4);
	return 0;
}