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-assign-implicit-size.vert
blob
ebea94c05374b0377dc08f39a3c70dc4dbf1a9a8
1
/* [config]
2
* expect_result: fail
3
* glsl_version: 1.20
4
* [end config]
5
*
6
* From page 20 (page 26 of the PDF) of the GLSL 1.20 spec:
7
*
8
* "However, implicitly sized arrays cannot be assigned to. Note, this is
9
* a rare case that initializers and assignments appear to have different
10
* semantics."
11
*/
12
#version 120
13
14
uniform float a[5];
15
16
void main()
17
{
18
float b[];
19
b = a;
20
21
gl_Position = vec4(0);
22
}