Add some array declaration tests
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 30 Mar 2010 23:56:22 +0000 (16:56 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 30 Mar 2010 23:56:22 +0000 (16:56 -0700)
tests/array-01.glsl [new file with mode: 0644]
tests/array-02.glsl [new file with mode: 0644]
tests/array-03.glsl [new file with mode: 0644]
tests/array-04.glsl [new file with mode: 0644]
tests/array-05.glsl [new file with mode: 0644]
tests/array-06.glsl [new file with mode: 0644]
tests/array-07.glsl [new file with mode: 0644]
tests/array-08.glsl [new file with mode: 0644]

diff --git a/tests/array-01.glsl b/tests/array-01.glsl
new file mode 100644 (file)
index 0000000..d14135f
--- /dev/null
@@ -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 (file)
index 0000000..d743617
--- /dev/null
@@ -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 (file)
index 0000000..0026913
--- /dev/null
@@ -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 (file)
index 0000000..70f434d
--- /dev/null
@@ -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 (file)
index 0000000..1687040
--- /dev/null
@@ -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 (file)
index 0000000..46b4379
--- /dev/null
@@ -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 (file)
index 0000000..161ffbf
--- /dev/null
@@ -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 (file)
index 0000000..4bf0c6b
--- /dev/null
@@ -0,0 +1,2 @@
+/* FAIL - array size must be > 0 */
+uniform vec4 a[-1];