1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
/* [config] * expect_result: fail * glsl_version: 1.20 * glsles_version: 1.00 * [end config] * * From page 23 (page 29 of the PDF) of the GLSL 1.20 spec: * * "Attribute variables cannot be declared as arrays or structures." */ attribute vec4 a[2] uniform int i; void main() { gl_Position = a[i]; }