Add more tests for built-in variables.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@21893 e7fa87d3-cd2b-0410-9028-fcbf551c1848
diff --git a/Test/300.frag b/Test/300.frag
index 91fd8c6..ad6cbe3 100644
--- a/Test/300.frag
+++ b/Test/300.frag
@@ -71,6 +71,9 @@
dvec2 boo2; // ERROR
dvec3 boo3; // ERROR
dvec4 boo4; // ERROR
+
+ f += gl_FragCoord.y;
+ gl_FragDepth = f;
}
float imageBuffer; // ERROR, reserved
diff --git a/Test/300.vert b/Test/300.vert
index fa67960..96c74b4 100644
--- a/Test/300.vert
+++ b/Test/300.vert
@@ -31,6 +31,9 @@
mat3x2 op = outerProduct(v2, v3);
+ gl_Position = m44[2];
+ gl_PointSize = v2.y;
+
#ifdef GL_ES
#error GL_ES is set
#else
diff --git a/Test/300block.frag b/Test/300block.frag
index 989fee3..8f88e15 100644
--- a/Test/300block.frag
+++ b/Test/300block.frag
@@ -35,4 +35,5 @@
void main()
{
texture(s.sampler, vec3(inst.ni, bv.y, insts[2].nbv.z));
+ insts[s.v.x]; // ERROR
}