Status: fail
Result: fail
| Detail | Value |
|---|---|
| returncode | 1 |
| time | 0.24488401413 |
| note | Returncode was 1 |
| errors |
|
| command | /home/mks-hackers/piglit/framework/../bin/glslparsertest tests/spec/glsl-1.20/compiler/structure-and-array-operations/array-length-implicit-size.vert fail 1.20 |
| info | Returncode: 1
Errors:
Successfully compiled vertex shader tests/spec/glsl-1.20/compiler/structure-and-array-operations/array-length-implicit-size.vert:
Output:
Shader source:
/* [config]
* expect_result: fail
* glsl_version: 1.20
* [end config]
*
* From page 20 (page 26 of the PDF) of the GLSL 1.20 spec:
*
* "The length method cannot be called on an array that has not been
* explicitly sized."
*/
#version 120
void main()
{
float b[];
b[2] = 1.0; // Implicitly size array to have at least 3 elements
gl_Position = vec4(b.length());
}
|