diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2010-03-30 16:56:22 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-03-30 16:56:22 -0700 |
commit | 84960f01cb0edb79ec86d120b7dab7f254373940 (patch) | |
tree | 393ab76b3fae53a4da6c6aca9d466345f269785e /tests | |
parent | 2d816204c875ace0fc363d3eeada2255a5009d5c (diff) |
Add some array declaration tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/array-01.glsl | 3 | ||||
-rw-r--r-- | tests/array-02.glsl | 3 | ||||
-rw-r--r-- | tests/array-03.glsl | 3 | ||||
-rw-r--r-- | tests/array-04.glsl | 2 | ||||
-rw-r--r-- | tests/array-05.glsl | 2 | ||||
-rw-r--r-- | tests/array-06.glsl | 2 | ||||
-rw-r--r-- | tests/array-07.glsl | 2 | ||||
-rw-r--r-- | tests/array-08.glsl | 2 |
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]; |