aboutsummaryrefslogtreecommitdiff
path: root/tests/glslparsertest/glsl2/logic-01.frag
blob: 334213ba29edace2f1f1c85ba35cb02b92e3658a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// [config]
// expect_result: fail
// glsl_version: 1.10
// [end config]

/* Test short circuit evaluation: though the second argument isn't necessary
 * to determine the outcome of the branch, it must still be valid.
 */
void main()
{
	if (false && fhqwghads())
		gl_FragColor = vec4(0.0);
	else
		gl_FragColor = vec4(1.0);
}