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-es-3.00
/
compiler
/
undefined-macro.vert
blob
cf570a273caac0dc9ddf276cb69b51229a29ae46
1
#version 300 es
2
3
/* [config]
4
* expect_result: fail
5
* glsl_version: 3.00
6
* [end config]
7
*
8
* Page 11 (page 17 of the PDF) of the OpenGL ES Shading Language 3.00 spec
9
* says:
10
*
11
* "Undefined identifiers not consumed by the defined operator do not
12
* default to '0'. Use of such identifiers causes an error."
13
*/
14
15
#if FOO
16
#endif
17
18
void main()
19
{
20
gl_Position = vec4(0.);
21
}