1 # This tests unrolling of a loop with two exit point where the limiting
2 # terminator has its break in the else branch.
7 uniform int loop_count;
11 gl_Position = gl_Vertex;
13 vec4 colour = vec4(1.0, 1.0, 1.0, 1.0);
14 vec4 colour2 = vec4(0.0, 0.0, 0.0, 0.0);
15 for (int i = 0; i < 3; i++) {
17 colour = vec4(0.0, 1.0, 0.0, 1.0);
22 /* This should be unreachable */
24 colour2 = vec4(1.0, 0.0, 0.0, 1.0);
28 gl_FrontColor = colour + colour2;
34 gl_FragColor = gl_Color;
38 clear color 0.5 0.5 0.5 0.5
41 probe all rgba 0.0 1.0 0.0 1.0