Tests: Increase testing around incorrect use of block names and instances.

This commit is contained in:
John Kessenich
2015-07-20 12:03:04 -06:00
parent 78a5a0d7d8
commit e9022e1ffe
2 changed files with 51 additions and 1 deletions

View File

@@ -43,4 +43,16 @@ void main()
{
texture(s.sampler, vec3(inst.ni, bv.y, insts[2].nbv.z));
insts[s.v.x]; // ERROR
fooBlock; // ERROR
mat4(s); // ERROR
int insts;
float barBlock;
mat4(barBlock);
mat4(unreferenced); // ERROR, bad type
++s; // ERROR
inst - 1; // ERROR
++barBlock;
2 * barBlockArray; // ERROR
}
int fooBlock; // ERROR, redef.