summaryrefslogtreecommitdiff
path: root/tests/spec/glsl-1.30/compiler/switch-statement/switch-expression-var-float.vert
blob: 4e2eddad0edd77cb166e5e38bdcec47f615e7b10 (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:
//
//     "The type of init-expression in a switch statement must be a scalar
//     integer."

#version 130

void main() {
   float tmp = 1.5;
   switch (tmp) {
   }

   gl_Position = vec4(0.0);
}