glsl-4.50: move constant multiply test to glsl-4.50 dir
[piglit.git] / tests / shaders / glsl-fs-loop-zero-iter.shader_test
blob91ccf0f80a028bf429222306a2143143711fc3da
1 [require]
2 GLSL >= 1.10
4 [vertex shader]
5 void main()
7         gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
10 [fragment shader]
11 /* Verify that a zero-iteration loop is not executed.  See also
12  * bugzilla #23743.
13  */
14 #define COUNT 0
16 void main()
18         gl_FragColor = vec4(0.0, 1.0, 0.0, 0.0);
20         for (int i = 0; i < COUNT; i++)
21                 gl_FragColor = vec4(1.0, 0.0, 0.0, 0.0);
24 [test]
25 clear color 0.3 0.3 0.3 0.0
26 clear
27 ortho
28 draw rect 10 10 10 10
29 probe rgb 15 15 0.0 1.0 0.0