<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><pre>Dear all,</pre><pre>I run this test(glslparsertest/glsl2/local-function-03.frag),and I think it is may be bug of piglit. 
<pre><span style="line-height: 1.7;">As spec, this test should be fail, but pass, since declaration function in not in global scope should be an error.</span></pre><pre>Is there anyone noticed this test?</pre></pre><pre>// [config]
// expect_result: <b>pass</b>
// 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() {
   <b> float foo(float x);</b>
    gl_FragColor = vec4(0.0, foo(0.5), 0.0, 1.0);
}

float foo(float x) {
    return x + 0.5;
}
<br></pre><pre><b>In glsl 1.1.0  section 6.1.1:
The const qualifier cannot be used with out or inout, or a compile-time error results.  The above is used 
both for function declarations (i.e., prototypes) and for function definitions.  Hence, function definitions 
can have unnamed arguments.</b>
</pre><pre><br></pre></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>