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

Kenneth Graunke kenneth at whitecape.org
Tue Apr 30 01:52:33 PDT 2013


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



More information about the Piglit mailing list