Commit 7d58d655 by John Kessenich

Add a forward reference function call test.

parent a067b588
uniform vec4 bigColor;
varying vec4 BaseColor;
uniform float d;
void bar();
float foo(vec4);
float unreachableReturn();
void main()
{
vec4 color = vec4(foo(BaseColor));
bar();
float f = unreachableReturn();
gl_FragColor = color * f;
}
void bar()
{
}
float unreachableReturn()
{
bar();
if (d < 4.2)
return 1.2;
else
return 4.5;
}
float foo(vec4 bar)
{
return bar.x + bar.y;
}
......@@ -28,3 +28,4 @@ comment.frag
constErrors.frag
constFold.frag
errors.frag
forwardRef.frag
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment