summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/array-01.glsl3
-rw-r--r--tests/array-02.glsl3
-rw-r--r--tests/array-03.glsl3
-rw-r--r--tests/array-04.glsl2
-rw-r--r--tests/array-05.glsl2
-rw-r--r--tests/array-06.glsl2
-rw-r--r--tests/array-07.glsl2
-rw-r--r--tests/array-08.glsl2
8 files changed, 19 insertions, 0 deletions
diff --git a/tests/array-01.glsl b/tests/array-01.glsl
new file mode 100644
index 0000000..d14135f
--- /dev/null
+++ b/tests/array-01.glsl
@@ -0,0 +1,3 @@
+#version 120
+/* FAIL - array size type must be int */
+uniform vec4 [3.2] a;
diff --git a/tests/array-02.glsl b/tests/array-02.glsl
new file mode 100644
index 0000000..d743617
--- /dev/null
+++ b/tests/array-02.glsl
@@ -0,0 +1,3 @@
+#version 120
+/* FAIL - array size type must be scalar */
+uniform vec4 [ivec4(3)] a;
diff --git a/tests/array-03.glsl b/tests/array-03.glsl
new file mode 100644
index 0000000..0026913
--- /dev/null
+++ b/tests/array-03.glsl
@@ -0,0 +1,3 @@
+#version 120
+/* PASS */
+uniform vec4 [3] a;
diff --git a/tests/array-04.glsl b/tests/array-04.glsl
new file mode 100644
index 0000000..70f434d
--- /dev/null
+++ b/tests/array-04.glsl
@@ -0,0 +1,2 @@
+/* FAIL - array size type must be int */
+uniform vec4 a[3.2];
diff --git a/tests/array-05.glsl b/tests/array-05.glsl
new file mode 100644
index 0000000..1687040
--- /dev/null
+++ b/tests/array-05.glsl
@@ -0,0 +1,2 @@
+/* FAIL - array size type must be scalar */
+uniform vec4 a[ivec4(3)];
diff --git a/tests/array-06.glsl b/tests/array-06.glsl
new file mode 100644
index 0000000..46b4379
--- /dev/null
+++ b/tests/array-06.glsl
@@ -0,0 +1,2 @@
+/* PASS */
+uniform vec4 a[3];
diff --git a/tests/array-07.glsl b/tests/array-07.glsl
new file mode 100644
index 0000000..161ffbf
--- /dev/null
+++ b/tests/array-07.glsl
@@ -0,0 +1,2 @@
+/* FAIL - array size must be > 0 */
+uniform vec4 a[0];
diff --git a/tests/array-08.glsl b/tests/array-08.glsl
new file mode 100644
index 0000000..4bf0c6b
--- /dev/null
+++ b/tests/array-08.glsl
@@ -0,0 +1,2 @@
+/* FAIL - array size must be > 0 */
+uniform vec4 a[-1];