diff options
Diffstat (limited to 'src/glsl/tests/array-10.glsl')
-rw-r--r-- | src/glsl/tests/array-10.glsl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/glsl/tests/array-10.glsl b/src/glsl/tests/array-10.glsl new file mode 100644 index 00000000000..019aa21150f --- /dev/null +++ b/src/glsl/tests/array-10.glsl @@ -0,0 +1,11 @@ +/* FAIL - array constructors forbidden in GLSL 1.10 + * + * This can also generate an error because the 'vec4[]' style syntax is + * illegal in GLSL 1.10. + */ +void main() +{ + vec4 a[2] = vec4 [2] (vec4(1.0), vec4(2.0)); + + gl_Position = gl_Vertex; +} |