1#version 420 core
2
3// testing input arrays without a gl_in[] block redeclaration, see 400.geom for with
4
5int i;
6
7layout(triangles) in;
8in vec4 colorun[];
9in vec4 color3[3];
10
11void foo()
12{
13    gl_in.length();
14    gl_in[1].gl_Position;
15    gl_in.length();
16    gl_in[i].gl_Position;   // should be sized to 3 by 'triangles'
17}
18
19in gl_PerVertex {  // ERROR, already used
20    vec4 gl_Position;
21} gl_in[];
22