Add function recursion testing to the link-time validation.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@23309 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich
2013-10-01 21:58:43 +00:00
parent f2ee3dd46a
commit 2ecdd14288
10 changed files with 469 additions and 25 deletions

28
Test/recurse2.frag Normal file
View File

@@ -0,0 +1,28 @@
#version 330 core
// cross-unit recursion
// two-level recursion
void cfoo(float);
float cbar(int)
{
cfoo(4.2);
return 3.2;
}
// four-level, out of order
void CA();
void CC();
void CB() { CC(); }
void CD() { CA(); }
// high degree
void CAT();
void CCT();
void CBT() { CCT(); CCT(); CCT(); }
void CDT() { CAT(); }