aboutsummaryrefslogtreecommitdiff
path: root/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-mismatched-size.vert
blob: fd78eed77f2caad72f97becd493e598c328a2ecb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* [config]
 * expect_result: fail
 * glsl_version: 1.20
 * glsles_version: 1.00
 * [end config]
 *
 * From page 33 (page 39 of the PDF) of the GLSL 1.20 spec:
 *
 *     "There must be exactly the same number of arguments as the size of the
 *     array being constructed."
 */


vec4 a[] = vec4[2](vec4(0.0), vec4(1.0), vec4(2.0));

void main() { gl_Position = a[0]; }