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
/
glsl2
/
redeclaration-11.vert
blob
76249e1193127aa9b1d159ddf99f6617a63a1ccc
1
// [config]
2
// expect_result: fail
3
// glsl_version: 1.20
4
//
5
// [end config]
6
7
/* FAIL - in 1.20, variables hide functions, so the call is illegal. */
8
#version 120
9
10
void foo(vec4 vs) {
11
gl_Position = vs;
12
}
13
14
void main() {
15
float foo = 1.0;
16
foo(vec4(0.0));
17
}