projects
/
platform
/
upstream
/
glslang.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #2891 from dneto0/hlsl-namespace
[platform/upstream/glslang.git]
/
Test
/
recurse2.frag
1
#version 330 core
\r
2
\r
3
// cross-unit recursion
\r
4
\r
5
// two-level recursion
\r
6
\r
7
void cfoo(float);
\r
8
\r
9
float cbar(int)
\r
10
{
\r
11
cfoo(4.2);
\r
12
\r
13
return 3.2;
\r
14
}
\r
15
\r
16
// four-level, out of order
\r
17
\r
18
void CA();
\r
19
void CC();
\r
20
void CB() { CC(); }
\r
21
void CD() { CA(); }
\r
22
\r
23
// high degree
\r
24
\r
25
void CAT();
\r
26
void CCT();
\r
27
void CBT() { CCT(); CCT(); CCT(); }
\r
28
void CDT() { CAT(); }
\r