Linker: Fix #1329: correctly merge unsized arrays, and fix link tests.

This commit is contained in:
John Kessenich
2018-04-01 21:22:34 -06:00
parent ed834895ea
commit 5a867acad5
6 changed files with 355 additions and 47 deletions

View File

@@ -2,9 +2,23 @@
vec4 getColor();
out vec4 color;
layout(location=0) out vec4 color;
int a1[]; // max size from link1
int a2[]; // max size from link2
int b[5];
int c[];
int i;
buffer bnameRuntime { float r[]; };
buffer bnameImplicit { float m[]; };
void main()
{
color = getColor();
a1[8] = 1;
a2[1] = 1;
b[i] = 1;
c[3] = 1;
}