[pixel shader]
float4 main(float4 pos : SV_POSITION) : SV_TARGET
{
    int i;
    float x = 0.0;
    for (i = 0; i < 10; i++)
    {
        x += i;
        if (pos.x == 1.5 && i == 5)
            break;
        if (pos.x == 2.5 && i >= 7)
            continue;
        x -= 1;
    }
    return float4(i, x, 0.0, 0.0);
}

[test]
draw quad
probe rgba (0, 0) (10.0, 35.0, 0.0, 0.0)
probe rgba (1, 0) (5.0, 10.0, 0.0, 0.0)
probe rgba (2, 0) (10.0, 38.0, 0.0, 0.0)