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
perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git]
/
tests
/
glslparsertest
/
shaders
/
array13.frag
blob
b1e2c377f596e6e602804b45c67d12c76ff96a40
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
10
float array[5];
11
const int idx = -2;
12
13
void main()
14
{
15
gl_FragColor = vec4(0.0, 1.0, 0.0, array[idx]);
16
}