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
arb_framebuffer_object: add missing MSAA alpha-to-coverage and alpha-to-one tests
[piglit.git]
/
tests
/
spec
/
glsl-1.20
/
compiler
/
structure-and-array-operations
/
array-resize-after-access-too-small.vert
blob
ebee5e6a05555c07d9b10851e5fa293d004bebf3
1
/* [config]
2
* expect_result: fail
3
* glsl_version: 1.20
4
* [end config]
5
*/
6
#version 120
7
8
float x[];
9
10
void foo() { x[3] = 2.; }
11
12
// The array must be at least 4 elements because of the previous
13
// access to x[3].
14
float x[] = float[2](1., 2.);
15
16
void main()
17
{
18
foo();
19
gl_Position = vec4(x[0]);
20
}