[Piglit] [PATCH] glsl-1.10: add a 'invalid-array-as-function-param' glslparsertest

Tapani Pälli tapani.palli at intel.com
Tue Aug 14 07:41:34 UTC 2018


Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107550
---
 .../spec/glsl-1.10/compiler/invalid-array-as-function-param.vert | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 tests/spec/glsl-1.10/compiler/invalid-array-as-function-param.vert

diff --git a/tests/spec/glsl-1.10/compiler/invalid-array-as-function-param.vert b/tests/spec/glsl-1.10/compiler/invalid-array-as-function-param.vert
new file mode 100644
index 000000000..d285680de
--- /dev/null
+++ b/tests/spec/glsl-1.10/compiler/invalid-array-as-function-param.vert
@@ -0,0 +1,9 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.10
+// [end config]
+
+void main()
+{
+	func(0[2]);
+}
-- 
2.14.4



More information about the Piglit mailing list