aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/3-expressions/const_expr_case_label.zc
blob: 0c76d4bcf7137fd1deebb027f3191fddea0cc331 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// expect: seven/
include rt;
fn main() {
	int k = 7;
	switch (k) {
	case 1 + 2 * 3: rt.put_s("seven");
	default: rt.put_s("other");
	}
	rt.put_c(10);
	return 0;
}
// zc0: skip