summaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp/tests/086-reserved-macro-names.c
Commit message (Collapse)AuthorAgeFilesLines
* glcpp: Raise error if defining any macro containing two consecutive underscoresCarl Worth2011-09-301-0/+1
| | | | | | | | | | | | | | | | | | The specification reserves any macro name containing two consecutive underscores, (anywhere within the name). Previously, we only raised this error for macro names that started with two underscores. Fix the implementation to check for two underscores anywhere, and also update the corresponding 086-reserved-macro-names test. This also fixes the following two piglit tests: spec/glsl-1.30/preprocessor/reserved/double-underscore-02.frag spec/glsl-1.30/preprocessor/reserved/double-underscore-03.frag Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Signed-off-by: Carl Worth <[email protected]>
* glcpp: Add several tests for diagnostics.Carl Worth2010-08-111-0/+2
Which are proving to be useful since some of these tests are not yet acting as desired, (in particular, the unterminated if test is not generating any diagnostic).