diff options
Diffstat (limited to 'tests/spec/glsl-1.30/compiler/switch-statement/switch-expression-const-float.vert')
-rw-r--r-- | tests/spec/glsl-1.30/compiler/switch-statement/switch-expression-const-float.vert | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/spec/glsl-1.30/compiler/switch-statement/switch-expression-const-float.vert b/tests/spec/glsl-1.30/compiler/switch-statement/switch-expression-const-float.vert new file mode 100644 index 000000000..a441cfbbb --- /dev/null +++ b/tests/spec/glsl-1.30/compiler/switch-statement/switch-expression-const-float.vert @@ -0,0 +1,18 @@ +// [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() { + switch (1.5) { + } + + gl_Position = vec4(0.0); +} |