SKIP: FAILED

#version 310 es

struct main_out {
  vec4 x_GLF_color_1;
};
precision highp float;
precision highp int;


vec4 x_GLF_color = vec4(0.0f);
void main_1() {
  vec4 v = vec4(0.0f);
  vec4 x_23 = v;
  v = vec4(1.0f, 1.0f, x_23[2u], x_23[3u]);
  vec4 x_25 = v;
  v = vec4(x_25[0u], x_25[1u], 2.0f, 2.0f);
  vec4 x_27 = v;
  if (all((x_27 == vec4(1.0f, 1.0f, 2.0f, 2.0f)))) {
    x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
  } else {
    x_GLF_color = vec4(0.0f);
  }
}
main_out main() {
  main_1();
  return main_out(x_GLF_color);
}
error: Error parsing GLSL shader:
ERROR: 0:4: 'float' : type requires declaration of default precision qualifier 
ERROR: 0:4: '' : compilation terminated 
ERROR: 2 compilation errors.  No code generated.




tint executable returned error: exit status 1
