glsl-array-bounds: set out-of-bounds array index inside shader
[piglit.git] / tests / shaders / glsl-fs-implicit-array-size-03.shader_test
blob4141afaa479ad35748ace40ea2508d03b78422b5
1 [require]
2 # This test reproduces Mesa bugzilla #34198.
3 GLSL >= 1.20
5 [fragment shader]
6 void myfunc()
8         float a[];
10         a[0] = 1.0;
11         gl_FragColor = vec4(0.0, a[0], 0.0, 1.0);
14 void main()
16         myfunc();
19 [test]
20 draw rect -1 -1 2 2
21 probe all rgba 0 1.0 0 1.0