Results for glslparsertest/glsl2/local-function-01.frag

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.225080966949
note
Returncode was 1
errors
  • Successfully compiled fragment shader tests/glslparsertest/glsl2/local-function-01.frag:
command
/home/mks-hackers/piglit/framework/../bin/glslparsertest tests/glslparsertest/glsl2/local-function-01.frag fail 1.20
info
Returncode: 1

Errors:
Successfully compiled fragment shader tests/glslparsertest/glsl2/local-function-01.frag: 


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

/* FAIL - local function declarations are not allowed. */
#version 120
void main() {
    float foo(float x);
    gl_FragColor = vec4(0.0, foo(0.5), 0.0, 1.0);
}

float foo(float x) {
    return x + 0.5;
}


Back to summary