aboutsummaryrefslogtreecommitdiff
path: root/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-size.vert
blob: b0f9688643ae760caf3c689ca6bc61097e88d76c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* [config]
 * expect_result: fail
 * glsl_version: 1.20
 * glsles_version: 1.00
 * [end config]
 *
 * From page 20 (page 26 of the PDF) of the GLSL 1.20 spec:
 *
 *     "However, implicitly sized arrays cannot be assigned to.  Note, this is
 *     a rare case that initializers and assignments appear to have different
 *     semantics."
 */


uniform float a[5];

void main()
{
	float b[];
	b = a;

	gl_Position = vec4(0);
}