Results for glslparsertest/glsl2/const-array-03.frag

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.43700003624
note Returncode was 1
command Z:\piglit\framework/../bin/glslparsertest tests/glslparsertest/glsl2\const-array-03.frag pass 1.20
errors
  • Failed to compile fragment shader tests/glslparsertest/glsl2\\const-array-03.frag: ERROR: 0:14: \'const float\' : cannot declare arrays of this qualifier
  • ERROR: 0:14: \'const\' : non-matching types (using implicit conversion) for const initializer
  • ERROR: 0:15: \'const float\' : cannot declare arrays of this qualifier
  • ERROR: 0:15: \'const\' : non-matching types (using implicit conversion) for const initializer
  • ERROR: 0:18: \'a\' : left of \'[\' is not of type array, matrix, or vector
  • ERROR: 0:18: \'a\' : left of \'[\' is not of type array, matrix, or vector
  • ERROR: 0:18: \'b\' : left of \'[\' is not of type array, matrix, or vector
  • ERROR: 0:18: \'b\' : left of \'[\' is not of type array, matrix, or vector
info
Returncode: 1

Errors:
Failed to compile fragment shader tests/glslparsertest/glsl2\const-array-03.frag: ERROR: 0:14: 'const float' : cannot declare arrays of this qualifier 
ERROR: 0:14: 'const' :  non-matching types (using implicit conversion) for const initializer  
ERROR: 0:15: 'const float' : cannot declare arrays of this qualifier 
ERROR: 0:15: 'const' :  non-matching types (using implicit conversion) for const initializer  
ERROR: 0:18: 'a' :  left of '[' is not of type array, matrix, or vector  
ERROR: 0:18: 'a' :  left of '[' is not of type array, matrix, or vector  
ERROR: 0:18: 'b' :  left of '[' is not of type array, matrix, or vector  
ERROR: 0:18: 'b' :  left of '[' is not of type array, matrix, or vector  



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

/* PASS */
#version 120
void main()
{
   const float a[] = float[](0.0, 1.0);
   const float b[2] = float[2](0, 1);

   if (a == b)
      gl_FragColor = vec4(a[0], a[1], b[0], b[1]);
   else
      gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
}

Back to summary