Results for spec/glsl-1.10/compiler/expressions/invalid-logic-not-02.vert

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.342595815659
note
Returncode was 1
command
/home/mks-hackers/piglit/framework/../bin/glslparsertest tests/spec/glsl-1.10/compiler/expressions/invalid-logic-not-02.vert fail 1.10
errors
  • Successfully compiled vertex shader tests/spec/glsl-1.10/compiler/expressions/invalid-logic-not-02.vert: 0(13) : warning C7011: implicit cast from "int" to "bool"
info
Returncode: 1

Errors:
Successfully compiled vertex shader tests/spec/glsl-1.10/compiler/expressions/invalid-logic-not-02.vert: 0(13) : warning C7011: implicit cast from "int" to "bool"



Output:
Shader source:
// [config]
// expect_result: fail
// glsl_version: 1.10
// [end config]

#ifdef GL_ES
precision mediump float;
#endif

void main() {
	// "0" is not boolean, so the logical not operator cannot be applied
	// to it.
	if (!0)
		gl_Position = vec4(0.0);
	else
		gl_Position = vec4(1.0);
}

Back to summary