diff options
-rw-r--r-- | tests/glslparser.tests | 1 | ||||
-rw-r--r-- | tests/glslparsertest/glsl2/loop-07.frag | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/glslparser.tests b/tests/glslparser.tests index b43613ec4..658bba9f3 100644 --- a/tests/glslparser.tests +++ b/tests/glslparser.tests @@ -373,6 +373,7 @@ add_otherglslparsertest('glsl2/loop-03.vert', 'pass') add_otherglslparsertest('glsl2/loop-04.vert', 'pass') add_otherglslparsertest('glsl2/loop-05.vert', 'fail') add_otherglslparsertest('glsl2/loop-06.vert', 'pass') +add_otherglslparsertest('glsl2/loop-06.frag', 'pass') add_otherglslparsertest('glsl2/matrix-01.vert', 'fail') add_otherglslparsertest('glsl2/matrix-02.vert', 'fail') add_otherglslparsertest('glsl2/matrix-03.vert', 'fail') diff --git a/tests/glslparsertest/glsl2/loop-07.frag b/tests/glslparsertest/glsl2/loop-07.frag new file mode 100644 index 000000000..3d8cbb730 --- /dev/null +++ b/tests/glslparsertest/glsl2/loop-07.frag @@ -0,0 +1,11 @@ +/* PASS */ +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); +} |