import "libc";

main :: proc(): int {
    i := 0;

    for {
        if (i == 2) break;
        i += 1;
    }
    assert(i == 2);

    for i = 0; i < 2; i += 1 {

    }
    assert(i == 2);

    for ;i < 4; i += 1 {}
    assert(i == 4);

    for i < 5 {
        i += 1;
    }
    assert(i == 5);

    for ;;i += 1 {
        if (i == 8) break;
    }
    assert(i == 8);

    for i = 0; i < 3 {
        i += 1;
    }

    for i = 4 {
        assert(i == 4);
        break;
    }
    assert(i == 4);

    for j := 4 {
        assert(j == 4);
        break;
    }

    return 0;
}