Mercurial > ~dholland > hg > tradcpp > index.cgi
annotate tests/t28.c @ 185:16b4451e34b8
Add the ability to output line numbers, sort of.
It is enabled with the intentionally undocumented -p option (similar
to -P but reversed sense) and it might be vaguely useful but only
prints the line number when the file changes and may not get the line
numbers right.
author | David A. Holland |
---|---|
date | Fri, 12 Jun 2015 03:59:36 -0400 |
parents | cb08e397ce7b |
children |
rev | line source |
---|---|
126 | 1 #if 1 |
2 . right | |
3 | |
4 # if 1 | |
5 .. right | |
6 # elif 1 | |
7 .. wrong | |
8 # elif 0 | |
9 .. wrong | |
10 # else | |
11 .. wrong | |
12 # endif | |
13 | |
14 #elif 1 | |
15 . wrong | |
16 | |
17 # if 1 | |
18 .. wrong | |
19 # elif 1 | |
20 .. wrong | |
21 # elif 0 | |
22 .. wrong | |
23 # else | |
24 .. wrong | |
25 # endif | |
26 | |
27 #elif 0 | |
28 . wrong | |
29 | |
30 # if 1 | |
31 .. wrong | |
32 # elif 1 | |
33 .. wrong | |
34 # elif 0 | |
35 .. wrong | |
36 # else | |
37 .. wrong | |
38 # endif | |
39 | |
40 #else | |
41 . wrong | |
42 | |
43 # if 1 | |
44 .. wrong | |
45 # elif 1 | |
46 .. wrong | |
47 # elif 0 | |
48 .. wrong | |
49 # else | |
50 .. wrong | |
51 # endif | |
52 | |
53 #endif |