aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/4-statements/switch_same_label_other_switch.zc
blob: bb52a9485f9f1593a938b62b6c11728ca59b7c3d (plain) (blame)
1
2
3
4
5
// expect: 2/
// spec 4.7.2: equal labels in two different switches are fine
include rt;
fn main() { int k = 1; switch (k) { case 1: k = 2; } switch (k) { case 1: k = 9; case 2: rt.put_n(k); } rt.put_c(10); return 0; }
// zc0: skip