annotate tests/t27.c @ 186:9637bf434f8e

Don't report unclosed comments as "no newline at end of file". If we get EOF in the "middle" of a line but there's a newline at the end of the buffer we've got, it's because we're in the middle of a comment. So, say so.
author David A. Holland
date Fri, 12 Jun 2015 04:13: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(,,)