Results for spec/glsl-1.20/compiler/structure-and-array-operations/array-length-implicit-size.vert

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.24488401413
note
Returncode was 1
errors
  • Successfully compiled vertex shader tests/spec/glsl-1.20/compiler/structure-and-array-operations/array-length-implicit-size.vert:
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());
}

Back to summary