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

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.166328907013
note Returncode was 1
errors
  • Failed to compile fragment shader tests/glslparsertest/glsl2/const-array-04.frag: ERROR: 0:5: \'array of float\' : constructor not supported for type
  • ERROR: 0:5: \'array of float\' : no matching overloaded function found
  • ERROR: 0:5: \'const float\' : cannot declare arrays of this type
  • ERROR: 0:5: \'a\' : redefinition
  • ERROR: 0:6: \'array of float\' : constructor not supported for type
  • ERROR: 0:6: \'array of float\' : no matching overloaded function found
  • ERROR: 0:6: \'const float\' : cannot declare arrays of this type
  • ERROR: 0:6: \'b\' : redefinition
  • ERROR: 0:9: \'expression\' : left of \'[\' is not of type array, matrix, or vector
  • ERROR: 0:9: \'expression\' : left of \'[\' is not of type array, matrix, or vector
  • ERROR: 0:9: \'expression\' : left of \'[\' is not of type array, matrix, or vector
  • ERROR: 0:9: \'expression\' : left of \'[\' is not of type array, matrix, or vector
info
Returncode: 1

Errors:
Failed to compile fragment shader tests/glslparsertest/glsl2/const-array-04.frag: ERROR: 0:5: 'array of float' : constructor not supported for type 
ERROR: 0:5: 'array of float' : no matching overloaded function found 
ERROR: 0:5: 'const float' : cannot declare arrays of this type 
ERROR: 0:5: 'a' : redefinition 
ERROR: 0:6: 'array of float' : constructor not supported for type 
ERROR: 0:6: 'array of float' : no matching overloaded function found 
ERROR: 0:6: 'const float' : cannot declare arrays of this type 
ERROR: 0:6: 'b' : redefinition 
ERROR: 0:9: 'expression' :  left of '[' is not of type array, matrix, or vector  
ERROR: 0:9: 'expression' :  left of '[' is not of type array, matrix, or vector  
ERROR: 0:9: 'expression' :  left of '[' is not of type array, matrix, or vector  
ERROR: 0:9: 'expression' :  left of '[' is not of type array, matrix, or vector  



Output:
Shader source:
/* PASS */
#version 120
void main()
{
   const float a[] = float[](0.0, 1.0);
   const float b[2] = float[](4.0, 17.7);

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

Back to summary