[Piglit] glslparsertest/glsl2/local-function-03.frag
chris
wwzbwwzb at 163.com
Mon Nov 25 00:08:28 PST 2013
This test should be pass but fail. (glslparsertest/glsl2/parameters-04.vert)
http://cgit.freedesktop.org/piglit/tree/tests/glslparsertest/glsl2/parameters-04.vert
// [config]
// expect_result: fail
// glsl_version: 1.10
//
// # NOTE: Config section was auto-generated from file
// # NOTE: 'glslparser.tests' at git revision
// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0
// [end config]
/* FAIL - formal parameter lacks a name
*/
float a(float x, float )
{
return x;
}
glsl spec section 6.1.1
Hence, function definitions can have unnamed arguments.
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20131125/0efd4283/attachment.html>
More information about the Piglit
mailing list