xref: /aosp_15_r20/external/skia/resources/sksl/shared/ForLoopShadowing.sksl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1uniform half4 colorGreen, colorRed;
2
3half4 main(float2) {
4    int counter = 0;
5
6    const int increment = 1;
7    for (int i = 0; i < 10; i += increment) {
8        const int increment = 10;
9        if (i == 0) {
10            continue;  // `i += increment` should increment by 1
11        }
12        counter += increment;  // `counter += increment` should increment by 10
13    }
14
15    return (counter == 90) ? colorGreen : colorRed;
16}
17