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
/
no-statement-before-first-case.vert
blob
737fda37fb78cbd13fee1d116b703a6b7c2de622
1
#version 300 es
2
3
/* [config]
4
* expect_result: fail
5
* glsl_version: 3.00
6
* [end config]
7
*
8
* Page 80 of the OpenGL ES Shading Language 3.00 spec says:
9
*
10
* "No statements are allowed in a switch statement before the first case
11
* statement."
12
*/
13
14
uniform int x;
15
16
void main()
17
{
18
switch (x) {
19
gl_Position = vec4(0.);
20
default:
21
gl_Position = vec4(1.);
22
break;
23
}
24
}