mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-09 17:43:57 +00:00
new testcase for paste avoidance
llvm-svn: 38765
This commit is contained in:
parent
24fad1a82f
commit
341c9a1615
12
clang/test/Preprocessor/output_paste_avoid.c
Normal file
12
clang/test/Preprocessor/output_paste_avoid.c
Normal file
@ -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(=)
|
||||
|
Loading…
Reference in New Issue
Block a user