summaryrefslogtreecommitdiff
path: root/tests/spec/glsl-1.30/compiler/switch-statement/switch-case-empty-end.vert
blob: 153a533d1b9da0618cde3346922a9e9b4c33fceb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// [config]
// expect_result: fail
// glsl_version: 1.30
// [end config]
//
// From page 57 (page 63 of the PDF) of the GLSL 1.30 spec:
//
//     "Fall through labels are allowed, but it is an error to have no
//     statement between a label and the end of the switch statement."
 
#version 130

void main() {
   switch (1) {
   case 0:
   }

   gl_Position = vec4(0.0);
}