Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:plunky:20121107095945

Diff

Diff from 1.2 to:

Annotations

Annotate by Age | Author | Mixed | None
/fisheye/browse/pcc/pcc/cc/cpp/tests/test16

Annotated File View

plunky
1.2
1 This file is testing line counting in various scenarios involving
2 escaped newlines, including using the trigraph escape sequence
3
4 --> __LINE__ 4
5 "multi-\
6 line ??/
7 string"
8 --> __LINE__ 8
9 'multi-\
10 line ??/
11 character constant'
12 --> __LINE__ 12
13 multi-\
14 line 012\
15 345??/
16 678 integer constant
17 --> __LINE__ 17
18 multi-\
19 line\
20  li??/
21 st ??/
22 of \
23 tokens
24 --> __LINE__ 24
25 /* multi-\
26 line ??/
27 comment */
28 --> __LINE__ 28
29  /\
30 ??/
31 */ comment with escaped newlines /*
32          in the markers
33 ??/
34 *\
35 /
36 --> __LINE__ 36
37 // multi-\
38 line ??/
39 C++ comment
40 --> __LINE__ 40
41 \
42  \
43  /\
44 ??/
45 \
46 / ??/
47   C++ comment with leading whitespace and escaped newlines
48 --> __LINE__ 48
49 #pragma multi-\
50 line ??/
51 #pragma directive
52 --> __LINE__ 52
53 #define FOO multi-\
54 line macro /* with\
55  a comment *??/
56 / embedded
57 --> __LINE__ 57
58 FOO
59 --> __LINE__ 59
60 /??/
61 *  comment \
62    before ??/
63    directive */ #define BAR macro with a leading comment
64 --> __LINE__ 64
65 BAR
66 --> __LINE__ 66
67 \
68  ??/
69         #define BAZ macro with leading whitespace and escaped newlines
70 --> __LINE__ 70
71 BAZ
72 --> __LINE__ 72
73 #define POTATO a token split by escaped newlines
74 PO\
75 TA??/
76 TO
77 --> __LINE__ 77
plunky
1.1
78 #if 0
plunky
1.2
79 #pragma multi-??/
80 line \
81 #pragma inside if-false block
82 --> __LINE__ 82
plunky
1.1
83 #else
plunky
1.2
84 #pragma multi-??/
85 line \
86 #pragma inside if-true block
87 --> __LINE__ 87
plunky
1.1
88 #endif
plunky
1.2
89 --> __LINE__ 89
90 /* comment */ # pragma with a preceding comment
91 --> __LINE__ 91
92 #if 0
93 /* multi-\
94  * line comment at flslvl=1
95  */
96 #endif
97 --> __LINE__ 97
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-09-01 09:39 +0200