cl: Don't use device_infos if num_device_infos == 0
[piglit.git] / tests / glslparsertest / shaders / array13.frag
blobb1e2c377f596e6e602804b45c67d12c76ff96a40
1 // [config]
2 // expect_result: fail
3 // glsl_version: 1.20
4 // check_link: false
5 // [end config]
6 //
7 // Verify that out-of-bounds access to an array using a constant expression
8 // results in to compile error.
10 float array[5];
11 const int idx = -2;
13 void main()
15    gl_FragColor = vec4(0.0, 1.0, 0.0, array[idx]);