9 /* Verify that out-of-bounds access to an array does not result in any sort of
10 * program interruption.
12 * In this test case the array index may be constant folded.
16 float array[] = float [] (1.0, 2.0, 3.0, 4.0);
22 if (array[idx] == 5.0)
23 gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
25 gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0);
29 clear color 0.0 0.0 0.0 0.0
33 probe rgb 15 15 0.0 1.0 0.0