summaryrefslogtreecommitdiff
path: root/tests/glslparsertest
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2013-04-30 01:24:55 -0700
committerKenneth Graunke <kenneth@whitecape.org>2013-05-08 11:34:58 -0700
commitf53c96f69557891846494541eee55a24737605e3 (patch)
tree3a0e14627c18b404b469edf2bb31da098bf795e8 /tests/glslparsertest
parent6e9442a7ac5c9372760dbf96f66580918ffde648 (diff)
Add a GLSL parser test for a late function prototype.
While this prototype is unnecessary, it should still be legal. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'tests/glslparsertest')
-rw-r--r--tests/glslparsertest/glsl2/late-proto.vert7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/glslparsertest/glsl2/late-proto.vert b/tests/glslparsertest/glsl2/late-proto.vert
new file mode 100644
index 000000000..fe90fd1d6
--- /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);