Fix bug of accidentally overriding initial layout location with 0, which does not mean no location. Added in/out structure tests.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@22120 e7fa87d3-cd2b-0410-9028-fcbf551c1848
diff --git a/Test/300.vert b/Test/300.vert
index 19f62d4..aa881e9 100644
--- a/Test/300.vert
+++ b/Test/300.vert
@@ -9,6 +9,13 @@
in vec4 bad[10]; // ERROR
+struct S {
+ vec3 c;
+ float f;
+};
+
+out S s;
+
void main()
{
int id = gl_VertexID + gl_InstanceID;
@@ -34,6 +41,9 @@
gl_Position = m44[2];
gl_PointSize = v2.y;
+ s.c = v3;
+ s.f = dm;
+
#ifdef GL_ES
#error GL_ES is set
#else