1 // RUN: c-index-test -test-load-source-reparse 1 local %s | FileCheck %s
2 
3 // See PR 21254. We had too few bits to encode command IDs so if you created
4 // enough of them the ID codes would wrap around. This test creates commands up
5 // to an ID of 258. Ideally we should check for large numbers, but that would
6 // require a test source file which is megabytes in size. This is the test case
7 // from the PR.
8 
9 /**
10 @s
11 @tr
12 @y
13 @tt
14 @tg
15 @alu
16 @U
17 @I
18 @r
19 @t0
20 @t1
21 @ur
22 @S
23 @E
24 @pb
25 @f
26 @pe
27 @lue
28 @re
29 @oa
30 @l
31 @x
32 @R
33 @ute
34 @am
35 @ei
36 @oun
37 @ou
38 @nl
39 @ien
40 @fr
41 @en
42 @tet
43 @le
44 @L
45 @os
46 @A
47 @ro
48 @o
49 @ho
50 @ca
51 @Tie
52 @tl
53 @g
54 @hr
55 @et
56 @fro
57 @ast
58 @ae
59 @nN
60 @pc
61 @tae
62 @ws
63 @ia
64 @N
65 @lc
66 @psg
67 @ta
68 @t2
69 @D
70 @str
71 @ra
72 @t3
73 @t
74 @xt
75 @eN
76 @fe
77 @rU
78 @ar
79 @eD
80 @iE
81 @se
82 @st1
83 @rr
84 @ime
85 @ft
86 @lm
87 @wD
88 @wne
89 @h
90 @otn
91 @use
92 @roi
93 @ldc
94 @ln
95 @d
96 @ee
97 @ep
98 @us
99 @ut
100 @u
101 @n
102 @Nme
103 @min
104 @ma
105 @pct
106 @hd
107 @be
108 @It
109 @id
110 @cm
111 @ua
112 @fs
113 @Al
114 @axn
115 @rt
116 @to
117 @is
118 @fo
119 @i
120 @an
121 @de
122 @tel
123 @nd
124 @dic
125 @Lo
126 @il
127 @tle
128 @axt
129 @ba
130 @ust
131 @ac
132 @tpe
133 @tpl
134 @ctG
135 @ru
136 @m
137 @tG
138 @it
139 @rh
140 @G
141 @rpc
142 @el
143 @er
144 @w
145 @eo
146 @tx
147 @oo
148 @dD
149 @dD
150 */
151 void f();
152 
153 // CHECK:  CommentAST=[
154 // CHECK:    (CXComment_FullComment
155 // CHECK:       (CXComment_Paragraph
156 // CHECK:         (CXComment_InlineCommand CommandName=[s] RenderNormal HasTrailingNewline)
157 // CHECK:         (CXComment_InlineCommand CommandName=[tr] RenderNormal HasTrailingNewline)
158 // CHECK:         (CXComment_InlineCommand CommandName=[y] RenderNormal HasTrailingNewline)
159 // CHECK:         (CXComment_InlineCommand CommandName=[tt] RenderNormal HasTrailingNewline)
160 // CHECK:         (CXComment_InlineCommand CommandName=[tg] RenderNormal HasTrailingNewline)
161 // CHECK:         (CXComment_InlineCommand CommandName=[alu] RenderNormal HasTrailingNewline)
162 // CHECK:         (CXComment_InlineCommand CommandName=[U] RenderNormal HasTrailingNewline)
163 // CHECK:         (CXComment_InlineCommand CommandName=[I] RenderNormal HasTrailingNewline)
164 // CHECK:         (CXComment_InlineCommand CommandName=[r] RenderNormal HasTrailingNewline)
165 // CHECK:         (CXComment_InlineCommand CommandName=[t0] RenderNormal HasTrailingNewline)
166 // CHECK:         (CXComment_InlineCommand CommandName=[t1] RenderNormal HasTrailingNewline)
167 // CHECK:         (CXComment_InlineCommand CommandName=[ur] RenderNormal HasTrailingNewline)
168 // CHECK:         (CXComment_InlineCommand CommandName=[S] RenderNormal HasTrailingNewline)
169 // CHECK:         (CXComment_InlineCommand CommandName=[E] RenderNormal HasTrailingNewline)
170 // CHECK:         (CXComment_InlineCommand CommandName=[pb] RenderNormal HasTrailingNewline)
171 // CHECK:         (CXComment_InlineCommand CommandName=[f] RenderNormal HasTrailingNewline)
172 // CHECK:         (CXComment_InlineCommand CommandName=[pe] RenderNormal HasTrailingNewline)
173 // CHECK:         (CXComment_InlineCommand CommandName=[lue] RenderNormal HasTrailingNewline)
174 // CHECK:         (CXComment_InlineCommand CommandName=[re] RenderNormal HasTrailingNewline)
175 // CHECK:         (CXComment_InlineCommand CommandName=[oa] RenderNormal HasTrailingNewline)
176 // CHECK:         (CXComment_InlineCommand CommandName=[l] RenderNormal HasTrailingNewline)
177 // CHECK:         (CXComment_InlineCommand CommandName=[x] RenderNormal HasTrailingNewline)
178 // CHECK:         (CXComment_InlineCommand CommandName=[R] RenderNormal HasTrailingNewline)
179 // CHECK:         (CXComment_InlineCommand CommandName=[ute] RenderNormal HasTrailingNewline)
180 // CHECK:         (CXComment_InlineCommand CommandName=[am] RenderNormal HasTrailingNewline)
181 // CHECK:         (CXComment_InlineCommand CommandName=[ei] RenderNormal HasTrailingNewline)
182 // CHECK:         (CXComment_InlineCommand CommandName=[oun] RenderNormal HasTrailingNewline)
183 // CHECK:         (CXComment_InlineCommand CommandName=[ou] RenderNormal HasTrailingNewline)
184 // CHECK:         (CXComment_InlineCommand CommandName=[nl] RenderNormal HasTrailingNewline)
185 // CHECK:         (CXComment_InlineCommand CommandName=[ien] RenderNormal HasTrailingNewline)
186 // CHECK:         (CXComment_InlineCommand CommandName=[fr] RenderNormal HasTrailingNewline)
187 // CHECK:         (CXComment_InlineCommand CommandName=[en] RenderNormal HasTrailingNewline)
188 // CHECK:         (CXComment_InlineCommand CommandName=[tet] RenderNormal HasTrailingNewline)
189 // CHECK:         (CXComment_InlineCommand CommandName=[le] RenderNormal HasTrailingNewline)
190 // CHECK:         (CXComment_InlineCommand CommandName=[L] RenderNormal HasTrailingNewline)
191 // CHECK:         (CXComment_InlineCommand CommandName=[os] RenderNormal HasTrailingNewline)
192 // CHECK:         (CXComment_InlineCommand CommandName=[A] RenderNormal HasTrailingNewline)
193 // CHECK:         (CXComment_InlineCommand CommandName=[ro] RenderNormal HasTrailingNewline)
194 // CHECK:         (CXComment_InlineCommand CommandName=[o] RenderNormal HasTrailingNewline)
195 // CHECK:         (CXComment_InlineCommand CommandName=[ho] RenderNormal HasTrailingNewline)
196 // CHECK:         (CXComment_InlineCommand CommandName=[ca] RenderNormal HasTrailingNewline)
197 // CHECK:         (CXComment_InlineCommand CommandName=[Tie] RenderNormal HasTrailingNewline)
198 // CHECK:         (CXComment_InlineCommand CommandName=[tl] RenderNormal HasTrailingNewline)
199 // CHECK:         (CXComment_InlineCommand CommandName=[g] RenderNormal HasTrailingNewline)
200 // CHECK:         (CXComment_InlineCommand CommandName=[hr] RenderNormal HasTrailingNewline)
201 // CHECK:         (CXComment_InlineCommand CommandName=[et] RenderNormal HasTrailingNewline)
202 // CHECK:         (CXComment_InlineCommand CommandName=[fro] RenderNormal HasTrailingNewline)
203 // CHECK:         (CXComment_InlineCommand CommandName=[ast] RenderNormal HasTrailingNewline)
204 // CHECK:         (CXComment_InlineCommand CommandName=[ae] RenderNormal HasTrailingNewline)
205 // CHECK:         (CXComment_InlineCommand CommandName=[nN] RenderNormal HasTrailingNewline)
206 // CHECK:         (CXComment_InlineCommand CommandName=[pc] RenderNormal HasTrailingNewline)
207 // CHECK:         (CXComment_InlineCommand CommandName=[tae] RenderNormal HasTrailingNewline)
208 // CHECK:         (CXComment_InlineCommand CommandName=[ws] RenderNormal HasTrailingNewline)
209 // CHECK:         (CXComment_InlineCommand CommandName=[ia] RenderNormal HasTrailingNewline)
210 // CHECK:         (CXComment_InlineCommand CommandName=[N] RenderNormal HasTrailingNewline)
211 // CHECK:         (CXComment_InlineCommand CommandName=[lc] RenderNormal HasTrailingNewline)
212 // CHECK:         (CXComment_InlineCommand CommandName=[psg] RenderNormal HasTrailingNewline)
213 // CHECK:         (CXComment_InlineCommand CommandName=[ta] RenderNormal HasTrailingNewline)
214 // CHECK:         (CXComment_InlineCommand CommandName=[t2] RenderNormal HasTrailingNewline)
215 // CHECK:         (CXComment_InlineCommand CommandName=[D] RenderNormal HasTrailingNewline)
216 // CHECK:         (CXComment_InlineCommand CommandName=[str] RenderNormal HasTrailingNewline)
217 // CHECK:         (CXComment_InlineCommand CommandName=[ra] RenderNormal HasTrailingNewline)
218 // CHECK:         (CXComment_InlineCommand CommandName=[t3] RenderNormal HasTrailingNewline)
219 // CHECK:         (CXComment_InlineCommand CommandName=[t] RenderNormal HasTrailingNewline)
220 // CHECK:         (CXComment_InlineCommand CommandName=[xt] RenderNormal HasTrailingNewline)
221 // CHECK:         (CXComment_InlineCommand CommandName=[eN] RenderNormal HasTrailingNewline)
222 // CHECK:         (CXComment_InlineCommand CommandName=[fe] RenderNormal HasTrailingNewline)
223 // CHECK:         (CXComment_InlineCommand CommandName=[rU] RenderNormal HasTrailingNewline)
224 // CHECK:         (CXComment_InlineCommand CommandName=[ar] RenderNormal HasTrailingNewline)
225 // CHECK:         (CXComment_InlineCommand CommandName=[eD] RenderNormal HasTrailingNewline)
226 // CHECK:         (CXComment_InlineCommand CommandName=[iE] RenderNormal HasTrailingNewline)
227 // CHECK:         (CXComment_InlineCommand CommandName=[se] RenderNormal HasTrailingNewline)
228 // CHECK:         (CXComment_InlineCommand CommandName=[st1] RenderNormal HasTrailingNewline)
229 // CHECK:         (CXComment_InlineCommand CommandName=[rr] RenderNormal HasTrailingNewline)
230 // CHECK:         (CXComment_InlineCommand CommandName=[ime] RenderNormal HasTrailingNewline)
231 // CHECK:         (CXComment_InlineCommand CommandName=[ft] RenderNormal HasTrailingNewline)
232 // CHECK:         (CXComment_InlineCommand CommandName=[lm] RenderNormal HasTrailingNewline)
233 // CHECK:         (CXComment_InlineCommand CommandName=[wD] RenderNormal HasTrailingNewline)
234 // CHECK:         (CXComment_InlineCommand CommandName=[wne] RenderNormal HasTrailingNewline)
235 // CHECK:         (CXComment_InlineCommand CommandName=[h] RenderNormal HasTrailingNewline)
236 // CHECK:         (CXComment_InlineCommand CommandName=[otn] RenderNormal HasTrailingNewline)
237 // CHECK:         (CXComment_InlineCommand CommandName=[use] RenderNormal HasTrailingNewline)
238 // CHECK:         (CXComment_InlineCommand CommandName=[roi] RenderNormal HasTrailingNewline)
239 // CHECK:         (CXComment_InlineCommand CommandName=[ldc] RenderNormal HasTrailingNewline)
240 // CHECK:         (CXComment_InlineCommand CommandName=[ln] RenderNormal HasTrailingNewline)
241 // CHECK:         (CXComment_InlineCommand CommandName=[d] RenderNormal HasTrailingNewline)
242 // CHECK:         (CXComment_InlineCommand CommandName=[ee] RenderNormal HasTrailingNewline)
243 // CHECK:         (CXComment_InlineCommand CommandName=[ep] RenderNormal HasTrailingNewline)
244 // CHECK:         (CXComment_InlineCommand CommandName=[us] RenderNormal HasTrailingNewline)
245 // CHECK:         (CXComment_InlineCommand CommandName=[ut] RenderNormal HasTrailingNewline)
246 // CHECK:         (CXComment_InlineCommand CommandName=[u] RenderNormal HasTrailingNewline)
247 // CHECK:         (CXComment_InlineCommand CommandName=[n] RenderNormal HasTrailingNewline)
248 // CHECK:         (CXComment_InlineCommand CommandName=[Nme] RenderNormal HasTrailingNewline)
249 // CHECK:         (CXComment_InlineCommand CommandName=[min] RenderNormal HasTrailingNewline)
250 // CHECK:         (CXComment_InlineCommand CommandName=[ma] RenderNormal HasTrailingNewline)
251 // CHECK:         (CXComment_InlineCommand CommandName=[pct] RenderNormal HasTrailingNewline)
252 // CHECK:         (CXComment_InlineCommand CommandName=[hd] RenderNormal HasTrailingNewline)
253 // CHECK:         (CXComment_InlineCommand CommandName=[be] RenderNormal HasTrailingNewline)
254 // CHECK:         (CXComment_InlineCommand CommandName=[It] RenderNormal HasTrailingNewline)
255 // CHECK:         (CXComment_InlineCommand CommandName=[id] RenderNormal HasTrailingNewline)
256 // CHECK:         (CXComment_InlineCommand CommandName=[cm] RenderNormal HasTrailingNewline)
257 // CHECK:         (CXComment_InlineCommand CommandName=[ua] RenderNormal HasTrailingNewline)
258 // CHECK:         (CXComment_InlineCommand CommandName=[fs] RenderNormal HasTrailingNewline)
259 // CHECK:         (CXComment_InlineCommand CommandName=[Al] RenderNormal HasTrailingNewline)
260 // CHECK:         (CXComment_InlineCommand CommandName=[axn] RenderNormal HasTrailingNewline)
261 // CHECK:         (CXComment_InlineCommand CommandName=[rt] RenderNormal HasTrailingNewline)
262 // CHECK:         (CXComment_InlineCommand CommandName=[to] RenderNormal HasTrailingNewline)
263 // CHECK:         (CXComment_InlineCommand CommandName=[is] RenderNormal HasTrailingNewline)
264 // CHECK:         (CXComment_InlineCommand CommandName=[fo] RenderNormal HasTrailingNewline)
265 // CHECK:         (CXComment_InlineCommand CommandName=[i] RenderNormal HasTrailingNewline)
266 // CHECK:         (CXComment_InlineCommand CommandName=[an] RenderNormal HasTrailingNewline)
267 // CHECK:         (CXComment_InlineCommand CommandName=[de] RenderNormal HasTrailingNewline)
268 // CHECK:         (CXComment_InlineCommand CommandName=[tel] RenderNormal HasTrailingNewline)
269 // CHECK:         (CXComment_InlineCommand CommandName=[nd] RenderNormal HasTrailingNewline)
270 // CHECK:         (CXComment_InlineCommand CommandName=[dic] RenderNormal HasTrailingNewline)
271 // CHECK:         (CXComment_InlineCommand CommandName=[Lo] RenderNormal HasTrailingNewline)
272 // CHECK:         (CXComment_InlineCommand CommandName=[il] RenderNormal HasTrailingNewline)
273 // CHECK:         (CXComment_InlineCommand CommandName=[tle] RenderNormal HasTrailingNewline)
274 // CHECK:         (CXComment_InlineCommand CommandName=[axt] RenderNormal HasTrailingNewline)
275 // CHECK:         (CXComment_InlineCommand CommandName=[ba] RenderNormal HasTrailingNewline)
276 // CHECK:         (CXComment_InlineCommand CommandName=[ust] RenderNormal HasTrailingNewline)
277 // CHECK:         (CXComment_InlineCommand CommandName=[ac] RenderNormal HasTrailingNewline)
278 // CHECK:         (CXComment_InlineCommand CommandName=[tpe] RenderNormal HasTrailingNewline)
279 // CHECK:         (CXComment_InlineCommand CommandName=[tpl] RenderNormal HasTrailingNewline)
280 // CHECK:         (CXComment_InlineCommand CommandName=[ctG] RenderNormal HasTrailingNewline)
281 // CHECK:         (CXComment_InlineCommand CommandName=[ru] RenderNormal HasTrailingNewline)
282 // CHECK:         (CXComment_InlineCommand CommandName=[m] RenderNormal HasTrailingNewline)
283 // CHECK:         (CXComment_InlineCommand CommandName=[tG] RenderNormal HasTrailingNewline)
284 // CHECK:         (CXComment_InlineCommand CommandName=[it] RenderNormal HasTrailingNewline)
285 // CHECK:         (CXComment_InlineCommand CommandName=[rh] RenderNormal HasTrailingNewline)
286 // CHECK:         (CXComment_InlineCommand CommandName=[G] RenderNormal HasTrailingNewline)
287 // CHECK:         (CXComment_InlineCommand CommandName=[rpc] RenderNormal HasTrailingNewline)
288 // CHECK:         (CXComment_InlineCommand CommandName=[el] RenderNormal HasTrailingNewline)
289 // CHECK:         (CXComment_InlineCommand CommandName=[er] RenderNormal HasTrailingNewline)
290 // CHECK:         (CXComment_InlineCommand CommandName=[w] RenderNormal HasTrailingNewline)
291 // CHECK:         (CXComment_InlineCommand CommandName=[eo] RenderNormal HasTrailingNewline)
292 // CHECK:         (CXComment_InlineCommand CommandName=[tx] RenderNormal HasTrailingNewline)
293 // CHECK:         (CXComment_InlineCommand CommandName=[oo] RenderNormal HasTrailingNewline)
294 // CHECK:         (CXComment_InlineCommand CommandName=[dD] RenderNormal HasTrailingNewline)
295 // CHECK:         (CXComment_InlineCommand CommandName=[dD] RenderNormal)))]
296