You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
352 B
29 lines
352 B
#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(); }
|