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

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.138413906097
note Returncode was 1
errors
  • Successfully compiled fragment shader tests/glslparsertest/glsl2/local-function-01.frag: (no compiler output)
info
Returncode: 1

Errors:
Successfully compiled fragment shader tests/glslparsertest/glsl2/local-function-01.frag: (no compiler output)


Output:
Shader source:
/* 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