conditions: use set_extra_expr_mod() to change extra states
[smatch.git] / validation / preprocessor / preprocessor23.c
blob25be50857184daf960dd6627ac588538cb46089b
1 #define H(x,...) ,##x##__VA_ARGS__##,##__VA_ARGS__
2 H()
3 H(x)
4 H(,)
5 H(x,)
6 H(,x)
7 H(x,x)
8 #define I(x,...) ,##x##__VA_ARGS__
9 I()
10 I(x)
11 I(,)
12 I(x,)
13 I(,x)
14 I(x,x)
16 * check-name: Preprocessor #23
17 * check-command: sparse -E $file
19 * check-output-start
24 ,x,
25 ,x,x
26 ,xx,x
31 ,xx
32 * check-output-end
34 * check-error-start
35 preprocessor/preprocessor23.c:3:1: error: '##' failed: concatenation is not a valid token
36 preprocessor/preprocessor23.c:4:1: error: '##' failed: concatenation is not a valid token
37 preprocessor/preprocessor23.c:5:1: error: '##' failed: concatenation is not a valid token
38 preprocessor/preprocessor23.c:5:1: error: '##' failed: concatenation is not a valid token
39 preprocessor/preprocessor23.c:6:1: error: '##' failed: concatenation is not a valid token
40 preprocessor/preprocessor23.c:6:1: error: '##' failed: concatenation is not a valid token
41 preprocessor/preprocessor23.c:7:1: error: '##' failed: concatenation is not a valid token
42 preprocessor/preprocessor23.c:7:1: error: '##' failed: concatenation is not a valid token
43 preprocessor/preprocessor23.c:10:1: error: '##' failed: concatenation is not a valid token
44 preprocessor/preprocessor23.c:12:1: error: '##' failed: concatenation is not a valid token
45 preprocessor/preprocessor23.c:14:1: error: '##' failed: concatenation is not a valid token
46 * check-error-end