Debian Codegraph @

cc/cpp/tests/res16C

raw
1
2 # 1 "<stdin>"
3 This file is testing line counting in various scenarios involving
4 escaped newlines, including using the trigraph escape sequence
5
6 --> 4 4
7 "multi-line string"
8
9
10 --> 8 8
11 'multi-line character constant'
12
13
14 --> 12 12
15 multi-line 012345678 integer constant
16
17
18
19 --> 17 17
20 multi-line list of tokens
21
22
23
24
25
26 --> 24 24
27 /* multi-line comment */
28
29
30 --> 28 28
31 /*/ comment with escaped newlines /*
32
33
34 in the markers
35 */
36
37
38 --> 36 36
39 // multi-line C++ comment
40
41
42 --> 40 40
43 // C++ comment with leading whitespace and escaped newlines
44
45
46
47
48
49
50 --> 48 48
51
52 #pragma multi-line #pragma directive
53 # 49 "<stdin>"
54
55
56
57 --> 52 52
58
59
60
61
62 --> 57 57
63 multi-line macro /* with a comment */ embedded
64 --> 59 59
65 /* comment before directive */ #define BAR macro with a leading comment
66
67
68
69 --> 64 64
70 BAR
71 --> 66 66
72
73
74
75 --> 70 70
76 macro with leading whitespace and escaped newlines
77 --> 72 72
78
79 a token split by escaped newlines
80
81
82 --> 77 77
83
84
85
86
87
88
89
90 #pragma multi-line #pragma inside if-true block
91 # 84 "<stdin>"
92
93
94
95 --> 87 87
96
97 --> 89 89
98 /* comment */ # pragma with a preceding comment
99 --> 91 91
100
101
102
103
104
105 --> 97 97