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-1.50
/
compiler
/
no-statement-before-first-case.vert
blob
3cff8e7ee47b737f7c9f383d1fcd399d9ad3950e
1
#version 150
2
3
/* [config]
4
* expect_result: fail
5
* glsl_version: 1.50
6
* [end config]
7
*
8
* Page 66 of the OpenGL Shading Language 1.50 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
}