1 # This test contains a variety of loops that are likely to be unrolled
2 # by the implementation, and verifies that they all execute correctly.
9 gl_Position = gl_Vertex;
14 sum = 0; for (i = 10; i < 14; i++) sum += i; if (sum != 46) failed = true;
15 sum = 0; for (i = 10; i <= 13; i++) sum += i; if (sum != 46) failed = true;
16 sum = 0; for (i = 10; 14 > i; i++) sum += i; if (sum != 46) failed = true;
17 sum = 0; for (i = 10; 13 >= i; i++) sum += i; if (sum != 46) failed = true;
18 sum = 0; for (i = 10; i != 14; i++) sum += i; if (sum != 46) failed = true;
19 sum = 0; for (i = 10; 14 != i; i++) sum += i; if (sum != 46) failed = true;
20 sum = 0; for (i = 10; i == 10; i++) sum += i; if (sum != 10) failed = true;
21 sum = 0; for (i = 10; 10 == i; i++) sum += i; if (sum != 10) failed = true;
23 sum = 0; for (i = 13; i > 9; i--) sum += i; if (sum != 46) failed = true;
24 sum = 0; for (i = 13; i >= 10; i--) sum += i; if (sum != 46) failed = true;
25 sum = 0; for (i = 13; 9 < i; i--) sum += i; if (sum != 46) failed = true;
26 sum = 0; for (i = 13; 10 <= i; i--) sum += i; if (sum != 46) failed = true;
27 sum = 0; for (i = 13; i != 9; i--) sum += i; if (sum != 46) failed = true;
28 sum = 0; for (i = 13; 9 != i; i--) sum += i; if (sum != 46) failed = true;
29 sum = 0; for (i = 13; i == 13; i--) sum += i; if (sum != 13) failed = true;
30 sum = 0; for (i = 13; 13 == i; i--) sum += i; if (sum != 13) failed = true;
32 gl_FrontColor = failed ? vec4(1.0, 0.0, 0.0, 1.0) : vec4(0.0, 1.0, 0.0, 1.0);
38 gl_FragColor = gl_Color;
43 probe all rgba 0.0 1.0 0.0 1.0