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:
28
Test/recurse2.frag
Normal file
28
Test/recurse2.frag
Normal 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(); }
|
||||
Reference in New Issue
Block a user