[Piglit] [PATCH] Add a GLSL parser test for a late function prototype.

Matt Turner mattst88 at gmail.com
Tue Apr 30 10:47:17 PDT 2013


On Tue, Apr 30, 2013 at 1:52 AM, Kenneth Graunke <kenneth at whitecape.org> wrote:
> While this prototype is unnecessary, it should still be legal.
>
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> ---
>  tests/glslparsertest/glsl2/late-proto.vert | 7 +++++++
>  1 file changed, 7 insertions(+)
>  create mode 100644 tests/glslparsertest/glsl2/late-proto.vert
>
> diff --git a/tests/glslparsertest/glsl2/late-proto.vert b/tests/glslparsertest/glsl2/late-proto.vert
> new file mode 100644
> index 0000000..fe90fd1
> --- /dev/null
> +++ b/tests/glslparsertest/glsl2/late-proto.vert
> @@ -0,0 +1,7 @@
> +// [config]
> +// expect_result: pass
> +// glsl_version: 1.10
> +// [end config]
> +
> +vec4 f(vec4 v) { return v; }
> +vec4 f(vec4 v);
> --
> 1.8.2.1

Reviewed-by: Matt Turner <mattst88 at gmail.com>


More information about the Piglit mailing list