repo.or.cz
/
piglit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ext_gpu_shader4: add compiler tests for everything
[piglit.git]
/
tests
/
spec
/
glsl-1.20
/
compiler
/
structure-and-array-operations
/
array-size-with-side-effect.vert
blob
ccb23888aaa02130f2d96bd0a05189fddc8c3b3d
1
/* [config]
2
* expect_result: fail
3
* glsl_version: 1.20
4
* [end config]
5
*
6
* From page 19 (page 25 of the PDF) of the GLSL 1.20 spec:
7
*
8
* "When an array size is specified in a declaration, it must be an
9
* integral constant expression (see Section 4.3.3 "Constant Expressions")
10
* greater than zero."
11
*/
12
#version 120
13
14
void main()
15
{
16
int x;
17
vec4[(x = 3)] a;
18
gl_Position = vec4(0.0);
19
}