1*1f5207b7SJohn Levon #define A(1) x 2*1f5207b7SJohn Levon #define B(x 3*1f5207b7SJohn Levon #define C(x, 4*1f5207b7SJohn Levon #define D(,) 5*1f5207b7SJohn Levon #define E(__VA_ARGS__) 6*1f5207b7SJohn Levon #define F(x+ 7*1f5207b7SJohn Levon #define G(x..., 8*1f5207b7SJohn Levon #define H(x...,y) 9*1f5207b7SJohn Levon #define I(...+ 10*1f5207b7SJohn Levon #define J(x,y) 11*1f5207b7SJohn Levon /* 12*1f5207b7SJohn Levon * check-name: Preprocessor #11 13*1f5207b7SJohn Levon * check-command: sparse -E $file 14*1f5207b7SJohn Levon * 15*1f5207b7SJohn Levon * check-output-start 16*1f5207b7SJohn Levon 17*1f5207b7SJohn Levon 18*1f5207b7SJohn Levon * check-output-end 19*1f5207b7SJohn Levon * 20*1f5207b7SJohn Levon * check-error-start 21*1f5207b7SJohn Levon preprocessor/preprocessor11.c:1:11: error: "1" may not appear in macro parameter list 22*1f5207b7SJohn Levon preprocessor/preprocessor11.c:2:11: error: missing ')' in macro parameter list 23*1f5207b7SJohn Levon preprocessor/preprocessor11.c:3:12: error: missing ')' in macro parameter list 24*1f5207b7SJohn Levon preprocessor/preprocessor11.c:4:11: error: parameter name missing 25*1f5207b7SJohn Levon preprocessor/preprocessor11.c:5:11: error: __VA_ARGS__ can only appear in the expansion of a C99 variadic macro 26*1f5207b7SJohn Levon preprocessor/preprocessor11.c:6:12: error: "+" may not appear in macro parameter list 27*1f5207b7SJohn Levon preprocessor/preprocessor11.c:7:12: error: missing ')' in macro parameter list 28*1f5207b7SJohn Levon preprocessor/preprocessor11.c:8:12: error: missing ')' in macro parameter list 29*1f5207b7SJohn Levon preprocessor/preprocessor11.c:9:11: error: missing ')' in macro parameter list 30*1f5207b7SJohn Levon * check-error-end 31*1f5207b7SJohn Levon */ 32