aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/phase3
AgeCommit message (Collapse)AuthorFilesLines
2018-05-01do not to ignore old preprocessor testcasesLuc Van Oostenryck1-9/+0
validation/{phase2/backslash,phase3/comments} are two ancient testcases that predate ./test-suite and they are ignored by the testsuite because they do not have a '.c' extension. Change this by: - renaming them with a '.c' extension - moving them to validation/preprocessor/ - adding the testsuite tags & results to them - remove comments about their previous status Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2005-04-07[PATCH] comments handling fix in sparseAlexander Viro1-0/+9
If we get a newline in the middle of a comment, stream->pos.newline is set and remains set. In effect, newlines in the middle of multiline comments drift to its end. This is wrong - e.g. #define A /* foo */ B is 100% legitimate - since every comment is treated as if replaced with single space, the above is equivalent to #define A B Current code treats it as #define A B which is bogus. Fix is trivial - we simply should restore ->newline we had at the beginning of comment once we finish skipping it. BTW, I'm starting to put new testcases into subdirectories - by translation phase (multibyte character mapping == phase 1, line-splicing == phase 2, tokenizer == phase 3, macro-expansion == phase 4, remapping from source charset to execution charset == phase 5, merging adjacent string constants == phase 6, conversion of tokens from preprocessor to compiler ones and translation proper == phase 7, linking == phase 8). We obviously don't have many of those (no multibyte handling, source and execution charsets are identical and having no backend we obviously do not link anything), but it's easier to keep track of what's what in the tests that way. We already have way too many preprocessor<n>.c in there and going for saner names will only create confusion between preprocessor and parser tests. I'm not moving existing testcases - that's just for new ones...