Add semantic check for precision qualifier on wrong kind of type. Added a few more tests.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@22170 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
@@ -54,4 +54,6 @@ void main()
|
||||
const int ca3[3] = int[](3, 2); // ERROR
|
||||
int ica[] = int[](3, 2);
|
||||
int ica3[3] = int[](3, 2); // ERROR
|
||||
ica[3.1] = 3; // ERROR
|
||||
ica[u[1]] = 4; // ERROR
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user