annotate tests/t27.c @ 122:64c4de3709de

Complain if -[DIU] is given an empty argument. (Like many compilers over the years, we don't accept the argument appearing in the next argv word.) Warn about this in the man page too.
author David A. Holland
date Tue, 11 Jun 2013 18:32:41 -0400
parents 4f493fb35821
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
119
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
1 1.
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
2 #define A(a) a
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
3 A();
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
4
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
5 2.
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
6 #define B(a, b) (a,b)
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
7 B(a, );
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
8 B(, b);
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
9 B( , );
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
10 B(a,);
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
11 B(,b);
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
12 B(,);
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
13
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
14 3.
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
15 #define C(a, b, c) (a,b,c)
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
16 C(a, b, );
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
17 C(a, , c);
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
18 C(, , c);
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
19 C(a, , );
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
20 C(, b, );
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
21 C(, , c);
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
22 C(, , )
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
23 C(a,b,);
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
24 C(a,,c);
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
25 C(,,c);
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
26 C(a,,);
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
27 C(,b,);
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
28 C(,,c);
4f493fb35821 Test empty arguments.
David A. Holland
parents:
diff changeset
29 C(,,)