Results for spec/glsl-1.00/compiler/assignment-operators/assign-array-prohibited.vert

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.923647880554
note
Returncode was 1
command
/home/mks-hackers/piglit/framework/../bin/glslparsertest tests/spec/glsl-1.00/compiler/assignment-operators/assign-array-prohibited.vert fail 1.00
errors
  • Successfully compiled vertex shader tests/spec/glsl-1.00/compiler/assignment-operators/assign-array-prohibited.vert: Vertex shader was successfully compiled to run on hardware.
info
Returncode: 1

Errors:
Successfully compiled vertex shader tests/spec/glsl-1.00/compiler/assignment-operators/assign-array-prohibited.vert: Vertex shader was successfully compiled to run on hardware.



Output:
Shader source:
// [config]
// expect_result: fail
// glsl_version: 1.00
// [end config]
//
// Check that assignment to an array is illegal in GLSL ES 1.00.
//
// From section 5.8 of the GLSL ES 1.00 spec:
//     Array variables are l-values and may be passed to parameters
//     declared as out or inout. However, they may not be used as the
//     target of an assignment.

#version 100

void f(float x[2])
{
  float y[2];
  y = x;
}

Back to summary