aboutsummaryrefslogtreecommitdiff
path: root/compiler/tests/parser/statement_break_continue.bad
blob: 04df18e66dab8077d441d05493081358b70416b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

() f()
{
    break; // ERROR
    while :true { }
    continue; // ERROR
    if :true {
        break; // ERROR
    }
    switch 123 {
        case 123 {
            break; // ERROR only used in loops
        }
    }
    do {
        break;
    } while :false;
    break; // ERROR
    for int i in [1,2,3] {
        if :true {
            continue;
        }
    } loopend {
        break; // ERROR
    } loopempty {
        break; // ERROR
    }
    break; // ERROR
}