1 # Test that when an interface block contains members which are unsized
2 # arrays, the standard rules are applied in order to determine the
3 # array sizes (namely, the sizes should be inferred from the maximum
4 # array element accessed).
6 # In this test, the vertex shader uses an array size of 2, and the
7 # fragment shader uses an array size of 3, so link error should be
15 in vec4 piglit_vertex;
22 ifc_name.foo[0] = 0.0;
23 ifc_name.foo[1] = 0.0;
24 gl_Position = piglit_vertex;
35 gl_FragColor = vec4(ifc_name.foo[0], ifc_name.foo[1], ifc_name.foo[2], 1.0);