Unify the 8 grammar productions for declaring variables. This greatly simplifies making changes for this set of productions.
This change also naturally picks up redeclarations of built-in arrays and the addition of the remaining linker objects of const, arrays, etc. git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@23246 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
34
Test/decls.frag
Normal file
34
Test/decls.frag
Normal file
@@ -0,0 +1,34 @@
|
||||
#version 120
|
||||
|
||||
int a;
|
||||
int b, c;
|
||||
int d1 = 1;
|
||||
int e2 = 2, f;
|
||||
int g, h3 = 3;
|
||||
|
||||
int i4[4];
|
||||
int j, k5[5];
|
||||
int m6[6], m7[7];
|
||||
int n8[8], p;
|
||||
|
||||
int ii4[4] = int[](1, 2, 3, 4);
|
||||
int ij, ik5[5] = int[](5, 6, 7, 8, 9);
|
||||
int im2[2] = int[](10, 11), im3[3] = int[](12, 13, 14);
|
||||
int in8[4] = int[](21, 22, 23, 24), ip;
|
||||
|
||||
void vi4[4] = int[](1, 2, 3, 4);
|
||||
void vj, vk5[5] = int[](5, 6, 7, 8, 9);
|
||||
void vm2[2] = int[](10, 11), vm3[3] = int[](12, 13, 14);
|
||||
void vn8[4] = int[](21, 22, 23, 24), vp;
|
||||
|
||||
int gl_vi4[4] = int[](1, 2, 3, 4);
|
||||
int gl_vj, gl_vk5[5] = int[](5, 6, 7, 8, 9);
|
||||
int gl_vm2[2] = int[](10, 11), gl_vm3[3] = int[](12, 13, 14);
|
||||
int gl_vn8[4] = int[](21, 22, 23, 24), gl_vp;
|
||||
|
||||
void main()
|
||||
{
|
||||
while (bool cond = b < c);
|
||||
while (int icond = b);
|
||||
while (bool gl_cond = b < c);
|
||||
}
|
||||
Reference in New Issue
Block a user