Status: fail
Result: fail
| Detail | Value |
|---|---|
| returncode | 1 |
| time | 0.126679897308 |
| note | Returncode was 1 |
| command | /usr/local/src/piglit/framework/../bin/glslparsertest tests/spec/glsl-1.20/compiler/structure-and-array-operations/array-constant-index-too-large.vert fail 1.20 |
| errors |
|
| info | Returncode: 1
Errors:
Successfully compiled vertex shader tests/spec/glsl-1.20/compiler/structure-and-array-operations/array-constant-index-too-large.vert: 0(18) : warning C1068: array index out of bounds
0(18) : warning C1068: array index out of bounds
Output:
Shader source:
/* [config]
* expect_result: fail
* glsl_version: 1.20
* [end config]
*
* From page 19 (page 25 of the PDF) of the GLSL 1.20 spec:
*
* "It is illegal to declare an array with a size, and then later (in the
* same shader) index the same array with an integral constant expression
* greater than or equal to the declared size."
*/
#version 120
uniform vec4 [6] an_array;
void main()
{
gl_Position = an_array[6];
}
|