5 /* Verify that out-of-bounds access to an array does not result in any sort of
6 * program interruption.
8 * In this test case the array index may be constant folded.
12 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);
29 gl_FragColor = gl_Color;
33 clear color 0.0 0.0 0.0 0.0
37 probe rgb 15 15 0.0 1.0 0.0