6 /* Verify that out-of-bounds access to an array does not result in any sort of
7 * program interruption.
9 * In this test case the array index will not be constant folded.
13 float array[] = float [] (1.0, 2.0, 3.0, 4.0);
18 gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
20 if (array[idx] == 5.0)
21 gl_FrontColor = vec4(1.0, 0.0, 0.0, 1.0);
23 gl_FrontColor = vec4(0.0, 1.0, 0.0, 1.0);
26 [fragment shader file]
31 clear color 0.0 0.0 0.0 0.0
35 probe rgb 15 15 0.0 1.0 0.0