aboutsummaryrefslogtreecommitdiffstats
path: root/progs/tests/auto/simple_break.sy
blob: 6f2e5b6c6236c4e5e3f58c48405d9e2ee58af6c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
start :: fn {

    a := 0
    for i := 0, i < 10, i += 1 {
        a = a + 1
        if i == 2 {
            break
        }
    }
    a <=> 3

}