blob: c100b0c3f342ee4068d88fc4e02ee92581b96132 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
// expect: 1/3/4/
// spec 4.7.1: continue inside a switch continues the enclosing loop
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() {
for (int i = 1; i <= 4; i++) {
switch (i) { case 2: continue; default: pn(i); }
}
return 0;
}
// zc0: skip
|