glsl: test loop unroll with uint overflow
[piglit.git] / tests / spec / arb_shading_language_420pack / compiler / illegal-aggregate-initializer-array-dereference-out-of-bounds-implicitly-sized.frag
blobe87f1ec420af95cb932ed96e3a39b89271f8e285
1 /* [config]
2  * expect_result: fail
3  * glsl_version: 1.30
4  * require_extensions: GL_ARB_shading_language_420pack
5  * [end config]
6  */
8 #version 130
9 #extension GL_ARB_shading_language_420pack: enable
11 void main() {
12     // Illegal since there's a constant array access of a[4] but there are only
13     // 4 elements
14     float[] a = { 0.0, 1.0, 2.0, 3.0 };
15     gl_FragColor = vec4(a[4]);