xref: /illumos-gate/usr/src/tools/smatch/src/validation/preprocessor/preprocessor13.c (revision edd580643f2cf1434e252cd7779e83182ea84945)
1 /*
2  * GNU kludge, corner case
3  */
4 #define A(x,...) x##,##__VA_ARGS__
5 A(1)
6 A(1,2)
7 A(1,2,3)
8 /*
9  * check-name: Preprocessor #13
10  * check-command: sparse -E $file
11  *
12  * check-output-start
13 
14 1
15 1,2
16 1,2,3
17  * check-output-end
18  *
19  * check-error-start
20 preprocessor/preprocessor13.c:6:1: error: '##' failed: concatenation is not a valid token
21 preprocessor/preprocessor13.c:7:1: error: '##' failed: concatenation is not a valid token
22  * check-error-end
23  */
24