Add some array declaration tests

This commit is contained in:
Ian Romanick
2010-03-30 16:56:22 -07:00
parent 2d816204c8
commit 84960f01cb
8 changed files with 19 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
#version 120
/* FAIL - array size type must be int */
uniform vec4 [3.2] a;
+3
View File
@@ -0,0 +1,3 @@
#version 120
/* FAIL - array size type must be scalar */
uniform vec4 [ivec4(3)] a;
+3
View File
@@ -0,0 +1,3 @@
#version 120
/* PASS */
uniform vec4 [3] a;
+2
View File
@@ -0,0 +1,2 @@
/* FAIL - array size type must be int */
uniform vec4 a[3.2];
+2
View File
@@ -0,0 +1,2 @@
/* FAIL - array size type must be scalar */
uniform vec4 a[ivec4(3)];
+2
View File
@@ -0,0 +1,2 @@
/* PASS */
uniform vec4 a[3];
+2
View File
@@ -0,0 +1,2 @@
/* FAIL - array size must be > 0 */
uniform vec4 a[0];
+2
View File
@@ -0,0 +1,2 @@
/* FAIL - array size must be > 0 */
uniform vec4 a[-1];