/
pp-mcr-define-1.c.2.out
75 lines (75 loc) · 2.97 KB
/
pp-mcr-define-1.c.2.out
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
./pp-mcr-define-1.c:1:8: ERROR - missing identifier for macro name
#define
^
./pp-mcr-define-1.c:2:8: ERROR - missing identifier for macro name
#define /* */
^
./pp-mcr-define-1.c:3:8: ERROR - missing identifier for macro name
#define /* */ ^
^
./pp-mcr-define-1.c:4:15: ERROR - duplicate macro parameter `a'
#define x4(a, a)
~ ^
./pp-mcr-define-1.c:5:14: ERROR - missing identifier for macro parameter name
#define x5(a, -)
^
./pp-mcr-define-1.c:6:16: ERROR - missing `)' in macro parameter list
#define x6(a, b
^
./pp-mcr-define-1.c:7:14: ERROR - missing identifier for macro parameter name
#define x7(a,
^
./pp-mcr-define-1.c:8:16: ERROR - missing `)' in macro parameter list
#define x8(a, b
^
./pp-mcr-define-1.c:9:16: ERROR - missing `)' in macro parameter list
#define x9(a, b /* */
^
./pp-mcr-define-1.c:10:17: ERROR - missing `)' in macro parameter list
#define x10(a, b ^
^
./pp-mcr-define-1.c:11:19: ERROR - `##' cannot appear at the boundaries of macro expansion
#define x11(a, b) ## a
^~
./pp-mcr-define-1.c:12:23: ERROR - `##' cannot appear at the boundaries of macro expansion
#define x12(a, b) a b ##
^~
./pp-mcr-define-1.c:13:29: ERROR - `##' cannot appear at the boundaries of macro expansion
#define x13(a, b) /* ... */ ## a
^~
./pp-mcr-define-1.c:14:19: ERROR - `##' cannot appear at the boundaries of macro expansion
#define x14(a, b) ## /* ... */ a
^~
./pp-mcr-define-1.c:15:21: ERROR - `##' cannot appear at the boundaries of macro expansion
#define x15(a, b) a ## /* ... */
^~
./pp-mcr-define-1.c:16:24: ERROR - `##' cannot be an operand of `##'
#define x16(a, b) a ## ## b t
^~
./pp-mcr-define-1.c:17:44: ERROR - `##' cannot be an operand of `##'
#define x17(a, b) a /* ... */ ## /* ... */ ## /* ... */ - t
^~
./pp-mcr-define-1.c:18:16: ERROR - `#' must be followed by a macro parameter
#define x18(a) #
^
./pp-mcr-define-1.c:19:16: ERROR - `#' must be followed by a macro parameter
#define x19(a) # b
^
./pp-mcr-define-1.c:20:16: ERROR - `#' must be followed by a macro parameter
#define x20(a) # b t
^
./pp-mcr-define-1.c:23:16: ERROR - `#' must be followed by a macro parameter
#define x23(a) # !
^
./pp-mcr-define-1.c:24:16: ERROR - `#' must be followed by a macro parameter
#define x24(a) # /* ... */ ! t
^
./pp-mcr-define-1.c:25:19: ERROR - duplicate macro parameter `a'
#define x25(a, b, a, b)
~ ^
./pp-mcr-define-1.c:21:9: warning - macro `x21' defined but not used
#define x21(a) # /* ... */ a
^~~
./pp-mcr-define-1.c:22:9: warning - macro `x22' defined but not used
#define x22(a) # /* ... */ a t
^~~