While this prototype is unnecessary, it should still be legal.

Signed-off-by: Kenneth Graunke <[email protected]>
---
 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

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to