File: preprocessor23.c

package info (click to toggle)
sparse 0.4.5~rc1-1
  • links: PTS, VCS
  • area: non-free
  • in suites: jessie-kfreebsd
  • size: 1,752 kB
  • sloc: ansic: 27,795; perl: 237; sh: 225; makefile: 162
file content (47 lines) | stat: -rw-r--r-- 1,345 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#define H(x,...) ,##x##__VA_ARGS__##,##__VA_ARGS__
H()
H(x)
H(,)
H(x,)
H(,x)
H(x,x)
#define I(x,...) ,##x##__VA_ARGS__
I()
I(x)
I(,)
I(x,)
I(,x)
I(x,x)
/*
 * check-name: Preprocessor #23
 * check-command: sparse -E $file
 *
 * check-output-start

,
,x
,,
,x,
,x,x
,xx,x
,x
,
,x
,x
,xx
 * check-output-end
 *
 * check-error-start
preprocessor/preprocessor23.c:3:1: error: '##' failed: concatenation is not a valid token
preprocessor/preprocessor23.c:4:1: error: '##' failed: concatenation is not a valid token
preprocessor/preprocessor23.c:5:1: error: '##' failed: concatenation is not a valid token
preprocessor/preprocessor23.c:5:1: error: '##' failed: concatenation is not a valid token
preprocessor/preprocessor23.c:6:1: error: '##' failed: concatenation is not a valid token
preprocessor/preprocessor23.c:6:1: error: '##' failed: concatenation is not a valid token
preprocessor/preprocessor23.c:7:1: error: '##' failed: concatenation is not a valid token
preprocessor/preprocessor23.c:7:1: error: '##' failed: concatenation is not a valid token
preprocessor/preprocessor23.c:10:1: error: '##' failed: concatenation is not a valid token
preprocessor/preprocessor23.c:12:1: error: '##' failed: concatenation is not a valid token
preprocessor/preprocessor23.c:14:1: error: '##' failed: concatenation is not a valid token
 * check-error-end
 */