diff options
Diffstat (limited to 'tests/spec/glsl-es-3.00/compiler/const-initializer/from-sequence-in-function.vert')
-rw-r--r-- | tests/spec/glsl-es-3.00/compiler/const-initializer/from-sequence-in-function.vert | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/spec/glsl-es-3.00/compiler/const-initializer/from-sequence-in-function.vert b/tests/spec/glsl-es-3.00/compiler/const-initializer/from-sequence-in-function.vert new file mode 100644 index 000000000..5dad4194f --- /dev/null +++ b/tests/spec/glsl-es-3.00/compiler/const-initializer/from-sequence-in-function.vert @@ -0,0 +1,21 @@ +#version 300 es + +/* [config] + * expect_result: fail + * glsl_version: 3.00 + * [end config] + * + * Section 4.3.3 "Constant Expressions" of the OpenGL GLSL ES 3.00.4 spec + * says: + * + * "However, the sequence operator ( , ) and the assignment operators ( =, + * +=, ...) are not included in the operators that can create a constant + * expression." + */ + +const float f = cos((1.0, 2.0)); + +void main() +{ + gl_Position = vec4(f); +} |