KhronosGroup/WebGL — pull request #705 by RafaelCintron (2014-09-18 18:58:50+00:00)
Title: Ternary Operators in Initializers

This test verifies initializers with ternary operators correctly initialize all variables.

Test fragment shaders are of the form:
void main() {
{type} i = {initializer}, j = {ternary test using i that succeeds} ? : {green} : {black};
gl_FragColor = vec4(...); // Emit green so that test will pass
}
The fragment shader must compile and link with the default vertex shader. J must be able to use the values of I as well as have its own values properly initialized.