9 float[4] foo(float a[5])
11 return float[](a[0], a[1], a[2], a[3]);
19 float gu[2]; // okay, new scope
21 gu[2] = 4.0; // ERROR, overflow
36 if (float[4](1.0, 2.0, 3.0, 4.0) == g4)
45 gl_FragData[1000] = vec4(1.0); // ERROR
46 gl_FragData[-1] = vec4(1.0); // ERROR
47 gl_FragData[3] = vec4(1.0);
49 const int ca[] = int[](3, 2);
52 sum += ca[2]; // ERROR
54 const int ca3[3] = int[](3, 2); // ERROR
55 int ica[] = int[](3, 2);
56 int ica3[3] = int[](3, 2); // ERROR
57 ica[3.1] = 3; // ERROR
58 ica[u[1]] = 4; // ERROR
61 int[] foo213234(); // ERROR
62 int foo234234(float[]); // ERROR
63 int foo234235(vec2[] v); // ERROR
79 float[] foo2() // ERROR
87 float gUnusedUnsized[];
93 resize1.length(); // ERROR
99 float resize2[5]; // should be ERROR, but is not
101 resize2[5] = 4.0; // ERROR
104 int[] i = int[](); // ERROR, need constructor arguments
106 float b = vec4(emptyA); // ERROR, array can't be a constructor argument
107 uniform sampler2D s2d[];
111 s2d[a]; // ERROR, can't variably index unsized array
112 float local[] = gUnusedUnsized; // ERROR, can initialize with runtime-sized array