diff --git a/clang/test/Preprocessor/output_paste_avoid.c b/clang/test/Preprocessor/output_paste_avoid.c new file mode 100644 index 000000000000..842063a90846 --- /dev/null +++ b/clang/test/Preprocessor/output_paste_avoid.c @@ -0,0 +1,12 @@ +// RUN: clang -E %s | grep '+ + - - + + = = =' && +// RUN: clang -E %s | not grep -F '...' + +// This should print as ".. ." to avoid turning into ... +#define y(a) ..a +y(.) + +#define PLUS + +#define EMPTY +#define f(x) =x= ++PLUS -EMPTY- PLUS+ f(=) +