Results for glslparsertest/glsl2/redeclaration-03.vert

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.252525091171
note
Returncode was 1
errors
  • Successfully compiled vertex shader tests/glslparsertest/glsl2/redeclaration-03.vert:
command
/home/mks-hackers/piglit/framework/../bin/glslparsertest tests/glslparsertest/glsl2/redeclaration-03.vert fail 1.10
info
Returncode: 1

Errors:
Successfully compiled vertex shader tests/glslparsertest/glsl2/redeclaration-03.vert: 


Output:
Shader source:
// [config]
// expect_result: fail
// glsl_version: 1.10
//
// # NOTE: Config section was auto-generated from file
// # NOTE: 'glslparser.tests' at git revision
// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0
// [end config]

/* FAIL - Names beginning with "gl_" are reserved.
 *
 * Section 3.7 of the GLSL 1.20 spec says, without qualification:
 *
 *     "Identifiers starting with "gl_" are reserved for use by OpenGL, and
 *     may not be declared in a shader as either a variable or a function."
 *
 * The GLSL compiler in Nvidia's 195.36.15 driver allows this shader to
 * compile.  This is presumably on the basis the names of built-ins, gl_Vertex
 * in this case, can be overridden.
 */

float gl_Vertex(float x)
{
  return pow(x, 2.1718281828);
}

void main()
{
  float exp = gl_Vertex(2.0);
  gl_Position = vec4(0.0);
}

Back to summary