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

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.233000040054
note Returncode was 1
errors
  • Failed to compile fragment shader tests/glslparsertest/glsl2\\local-function-03.frag: Fragment shader failed to compile with the following errors:
  • ERROR: 0:13: error(#232) Function declarations cannot occur inside of functions foo
  • ERROR: error(#273) 1 compilation errors. No code generated
info
Returncode: 1

Errors:
Failed to compile fragment shader tests/glslparsertest/glsl2\local-function-03.frag: Fragment shader failed to compile with the following errors:
ERROR: 0:13: error(#232) Function declarations cannot occur inside of functions foo
ERROR: error(#273) 1 compilation errors.  No code generated



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

/* PASS - local function declarations are not allowed in GLSL 1.10. */
#version 110
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