blob: 7ff9da452eeb14dd84206f0ad5078b59a95468e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// [config]
// expect_result: pass
// glsl_version: 1.10
// [end config]
void main()
{
float a = 0.0;
int k = 0;
for (int i = 0; i < 3; ++i)
a += 1.0;
for ( ; k < 3; ++k)
a += 3.0;
gl_FragColor = vec4(a);
}
|