summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/macro_paste_commaext.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix whitespace handling in ## operatorJustin Bogner2014-02-041-2/+2
| | | | | | | | | | | | | | | | | In x ## y, where x and y are regular tokens, whitespace between x and ## is ignored, and whitespace between ## and y is also ignored. When either x or y is a function argument, whitespace was preserved, but it should not be. This patch removes the checks for whitespace before ## and before y, and in the special case where x is an empty macro argument and y is a regular token, actively removes whitespace before y. One existing test is affected by that change, but as clang's output now matches the standard's requirements and that of GCC, I've tweaked the testcase. Patch by Harald van Dijk! llvm-svn: 200785
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-5/+5
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Eliminate &&s in tests.Daniel Dunbar2009-11-081-4/+4
| | | | | | - 'for i in $(find . -type f); do sed -e 's#\(RUN:.*[^ ]\) *&& *$#\1#g' $i | FileUpdate $i; done', for the curious. llvm-svn: 86430
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-5/+5
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Multiple tests in a single test file must be linked with '&&'.Argyrios Kyrtzidis2008-06-121-3/+3
| | | | | | Otherwise, failing tests other than the last one will not be reported. llvm-svn: 52231
* Fix a bug where we would incorrectly emit a "cannot paste" error Chris Lattner2008-01-291-0/+13
message when handling the GNU ", ## __VA_ARGS__" extension. While I'm at it, flag uses of this as extensions. llvm-svn: 46503
OpenPOWER on IntegriCloud