diff options
author | Eric Anholt <eric@anholt.net> | 2010-04-13 15:00:27 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-04-13 15:01:41 -0700 |
commit | 94bf5162d77a9911881b2c3c35a2e7d98f91ae7d (patch) | |
tree | a4fa419f282de6b590d8c99df6211a4057f598cf | |
parent | f72ba22ec12a1f635bbe07b8b7eb2be64658476c (diff) |
glsl2/comment-continuation.frag: Add a testcase for a Mesa GLSL parse error.
I found this problem when running Mesa's parser across the Savage2
shaders, such as sky.vsh.
-rw-r--r-- | tests/all.tests | 1 | ||||
-rw-r--r-- | tests/glslparsertest/glsl2/comment-continuation.frag | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/all.tests b/tests/all.tests index c112dca17..ba1efe0be 100644 --- a/tests/all.tests +++ b/tests/all.tests @@ -512,6 +512,7 @@ add_otherglslparsertest('glsl2/attribute-08.vert', 'fail') add_otherglslparsertest('glsl2/attribute-09.vert', 'fail') add_otherglslparsertest('glsl2/attribute-10.vert', 'fail') add_otherglslparsertest('glsl2/attribute-11.vert', 'fail') +add_otherglslparsertest('glsl2/comment-continuation.frag', 'pass') add_otherglslparsertest('glsl2/condition-01.vert', 'fail') add_otherglslparsertest('glsl2/condition-02.vert', 'fail') add_otherglslparsertest('glsl2/condition-03.vert', 'pass') diff --git a/tests/glslparsertest/glsl2/comment-continuation.frag b/tests/glslparsertest/glsl2/comment-continuation.frag new file mode 100644 index 000000000..3f094c540 --- /dev/null +++ b/tests/glslparsertest/glsl2/comment-continuation.frag @@ -0,0 +1,6 @@ +void main() +{ +// This is a comment with a trailing backslash that shouldn't matter. \ + vec4 color = vec4(0.0, 1.0, 0.0, 0.0); + gl_FragColor = color; +} |