Results for spec/glsl-1.20/compiler/assignment-operators/modulus-assign-00.frag

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.250768184662
note
Returncode was 1
errors
  • Successfully compiled fragment shader tests/spec/glsl-1.20/compiler/assignment-operators/modulus-assign-00.frag:
command
/home/mks-hackers/piglit/framework/../bin/glslparsertest tests/spec/glsl-1.20/compiler/assignment-operators/modulus-assign-00.frag fail 1.20
info
Returncode: 1

Errors:
Successfully compiled fragment shader tests/spec/glsl-1.20/compiler/assignment-operators/modulus-assign-00.frag: 


Output:
Shader source:
// [config]
// expect_result: fail
// glsl_version: 1.20
// [end config]
//
// The modulus assignment operator '%=' is reserved.
//
// From section 5.8 of the GLSL 1.20 spec:
//     The assignments modulus into (%=), left shift by (<<=), right shift by
//     (>>=), inclusive or into ( |=), and exclusive or into ( ^=). These
//     operators are reserved for future use.


#version 120

int
f() {
    int x = 19;
    x %= 4;
    return x;
}


Back to summary