Results for spec@glsl-es-3.00@compiler@const-initializer@from-sequence-in-function.vert

Overview

Result: crash

Back to summary

Details

Detail Value
Returncode -11
Time 0:00:00.177334
Stdout
Shader source:
#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);
}

Stderr
Successfully compiled vertex shader /usr/local/lib/piglit/tests/spec/glsl-es-3.00/compiler/const-initializer/from-sequence-in-function.vert: 0:16(22): warning: left-hand operand of comma expression has no effect

Environment
PIGLIT_SOURCE_DIR="/usr/local/lib/piglit" PIGLIT_PLATFORM="mixed_glx_egl"
Command /usr/local/lib/piglit/bin/glslparsertest_gles2 /usr/local/lib/piglit/tests/spec/glsl-es-3.00/compiler/const-initializer/from-sequence-in-function.vert fail 3.00
dmesg

        

Back to summary