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
cl: Don't use device_infos if num_device_infos == 0
[piglit.git]
/
tests
/
glslparsertest
/
shaders
/
array01.vert
blob
d34d3e8ccd1f11b3dd0abac0efc22df71180c252
1
// [config]
2
// expect_result: fail
3
// glsl_version: 1.20
4
// check_link: false
5
// [end config]
6
//
7
// Verify that out-of-bounds access to an array using a constant expression
8
// results in to compile error.
9
float array[5];
10
const int idx = 8;
11
12
void main()
13
{
14
gl_Position = vec4(0.0, 1.0, 0.0, array[idx]);
15
}