glsl/glcpp: Add testing for null directives with spaces and comments

This new "make check" test stresses out the support from the last two commits,
(to esnure that '#' is correctly interpreted as the null directives,
regardless of any whitespace or comments on the same line).

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
Carl Worth 2014-07-01 18:00:41 -07:00 committed by Ian Romanick
parent c0127c30dd
commit 9a54b07651
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,9 @@
/* GLSL accepts a null directive. Let's test that in several variations: */
#
#
/*....*/#/*....*/
/*..*/ # /*..*/
#//...
# //...
/*....*/#/**///..
/*..*/ # /**/ //

View File

@ -0,0 +1,9 @@