/* This shader is expected to fail, as the spec 5.7 says: "The equality operators and assignment operator are only allowed if the two operands are same size and type. ... Both array operands must be explicitly sized." */ #version 120 void main() { int[] a = int[](0,1,2,3); //explicitly sized int[] b; //unsized b[0] = 0; b[1] = 1; b[2] = 2; b[3] = 3; if (b==a) gl_FrontColor = vec4(0, 1, 0, 1); else gl_FrontColor = vec4(1, 0, 0, 1); }