/
pp-103-3.c.2.out
111 lines (111 loc) · 3.33 KB
/
pp-103-3.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
./pp-103-3.c:4:14: warning - C90 does not support variadic macros
#define bar1(...)
^~~
./pp-103-3.c:5:17: warning - C90 does not support variadic macros
#define bar2(a, ...)
^~~
./pp-103-3.c:6:20: warning - C90 does not support variadic macros
#define bar3(a, b, ...)
^~~
./pp-103-3.c:9:6: ERROR - too many arguments to macro `foo1'
foo1(1)
^
./pp-103-3.c:1:9: note - see this definition
#define foo1()
^~~~
./pp-103-3.c:10:6: ERROR - too many arguments to macro `foo1'
foo1(1, )
^
./pp-103-3.c:1:9: note - see this definition
#define foo1()
^~~~
./pp-103-3.c:11:6: ERROR - too many arguments to macro `foo1'
foo1(1, 2)
^
./pp-103-3.c:1:9: note - see this definition
#define foo1()
^~~~
./pp-103-3.c:13:6: warning - C90 does not support empty argument to macro `foo2'
foo2()
^
./pp-103-3.c:15:9: ERROR - too many arguments to macro `foo2'
foo2(1, )
^
./pp-103-3.c:2:9: note - see this definition
#define foo2(a)
^~~~
./pp-103-3.c:16:9: ERROR - too many arguments to macro `foo2'
foo2(1, 2)
^
./pp-103-3.c:2:9: note - see this definition
#define foo2(a)
^~~~
./pp-103-3.c:18:6: ERROR - insufficient number of arguments to macro `foo3'
foo3()
^
./pp-103-3.c:3:9: note - see this definition
#define foo3(a, b, c)
^~~~
./pp-103-3.c:19:7: ERROR - insufficient number of arguments to macro `foo3'
foo3(1)
^
./pp-103-3.c:3:9: note - see this definition
#define foo3(a, b, c)
^~~~
./pp-103-3.c:20:9: ERROR - insufficient number of arguments to macro `foo3'
foo3(1, )
^
./pp-103-3.c:3:9: note - see this definition
#define foo3(a, b, c)
^~~~
./pp-103-3.c:21:10: ERROR - insufficient number of arguments to macro `foo3'
foo3(1, 2)
^
./pp-103-3.c:3:9: note - see this definition
#define foo3(a, b, c)
^~~~
./pp-103-3.c:22:12: warning - C90 does not support empty argument to macro `foo3'
foo3(1, 2, )
^
./pp-103-3.c:24:6: warning - C90 does not support empty argument to macro `bar1'
bar1()
^
./pp-103-3.c:28:6: warning - ISO C requires at least one argument for __VA_ARGS__
bar2()
^
./pp-103-3.c:5:9: note - see this definition
#define bar2(a, ...)
^~~~
./pp-103-3.c:29:7: warning - ISO C requires at least one argument for __VA_ARGS__
bar2(1)
^
./pp-103-3.c:5:9: note - see this definition
#define bar2(a, ...)
^~~~
./pp-103-3.c:32:6: ERROR - insufficient number of arguments to macro `bar3'
bar3()
^
./pp-103-3.c:6:9: note - see this definition
#define bar3(a, b, ...)
^~~~
./pp-103-3.c:33:7: ERROR - insufficient number of arguments to macro `bar3'
bar3(1)
^
./pp-103-3.c:6:9: note - see this definition
#define bar3(a, b, ...)
^~~~
./pp-103-3.c:34:9: warning - ISO C requires at least one argument for __VA_ARGS__
bar3(1, )
^
./pp-103-3.c:6:9: note - see this definition
#define bar3(a, b, ...)
^~~~
./pp-103-3.c:35:10: warning - ISO C requires at least one argument for __VA_ARGS__
bar3(1, 2)
^
./pp-103-3.c:6:9: note - see this definition
#define bar3(a, b, ...)
^~~~
./pp-103-3.c:36:12: warning - C90 does not support empty argument to macro `bar3'
bar3(1, 2, )
^