source: src/Tests/SynTree/Expected/Tuple.tst@ 81419b5

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors ctor deferred_resn demangler enum forall-pointer-decay gc_noraii jacob/cs343-translation jenkins-sandbox memory new-ast new-ast-unique-expr new-env no_list persistent-indexer pthread-emulation qualifiedEnum resolv-new string with_gc
Last change on this file since 81419b5 was 5f2f2d7, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago

fix constant types, remove unnecessary string copying, work on regression testing, fix several memory leaks

  • Property mode set to 100644
File size: 13.9 KB
RevLine 
[5f2f2d7]1f: function
[51b73452]2 with parameters
3 signed int
4 signed int
5 returning
6 signed int
7
[5f2f2d7]8g: function
[51b73452]9 with parameters
10 signed int
11 signed int
12 signed int
13 returning
14 signed int
15
[5f2f2d7]16h: static function
[51b73452]17 with parameters
[5f2f2d7]18 a: signed int
19 b: signed int
20 c: pointer to signed int
21 d: open array of char
[51b73452]22 returning
23 signed int
24 signed int
25 signed int
26 signed int
27
28struct inner
29 with members
[5f2f2d7]30 f2: signed int
31 f3: signed int
[51b73452]32
33struct outer
34 with members
[5f2f2d7]35 f1: signed int
36 i: instance of struct inner
37 f4: double
[51b73452]38
[5f2f2d7]39s: instance of struct outer
40sp: pointer to instance of struct outer
41t1: const volatile tuple of types
[51b73452]42 signed int
43 signed int
44
[5f2f2d7]45t2: static const tuple of types
[51b73452]46 signed int
47 const signed int
48
[5f2f2d7]49t3: static const tuple of types
[51b73452]50 signed int
51 const signed int
52
[5f2f2d7]53printf: function
[51b73452]54 with parameters
[5f2f2d7]55 fmt: pointer to char
[51b73452]56 and a variable number of other arguments
57 returning
[5f2f2d7]58 rc: signed int
[51b73452]59
[5f2f2d7]60printf: function
[51b73452]61 with parameters
[5f2f2d7]62 fmt: pointer to char
[51b73452]63 and a variable number of other arguments
64 returning
65 signed int
66
[5f2f2d7]67f1: function
[51b73452]68 with parameters
[5f2f2d7]69 w: signed int
[51b73452]70 returning
[5f2f2d7]71 x: short signed int
72 y: unsigned int
[51b73452]73 with body
[5f2f2d7]74 CompoundStmt
75 Expression Statement:
76 Applying untyped:
77 Name: ?=?
78 ...to:
79 Address of:
80 Tuple:
81 Name: y
[51b73452]82
[5f2f2d7]83 Name: x
84
85 Applying untyped:
86 Name: ?=?
87 ...to:
88 Address of:
89 Tuple:
90 Name: x
91
92 Name: y
93
94 Tuple:
95 Name: w
96
97 constant expression 23 signed int
98
99
100g1: function
[51b73452]101 returning
[5f2f2d7]102 r: tuple of types
[51b73452]103 signed int
104 char
105 long signed int
106 signed int
107
108 with body
[5f2f2d7]109 CompoundStmt
110 Declaration of x: short signed int
111 Declaration of p: short signed int
112 Declaration of y: unsigned int
113 Declaration of z: tuple of types
114 signed int
115 signed int
116
117 Expression Statement:
118 Applying untyped:
119 Name: ?=?
120 ...to:
121 Address of:
122 Tuple:
123 Name: x
124
125 Name: y
[51b73452]126
[5f2f2d7]127 Name: z
[51b73452]128
[5f2f2d7]129 Tuple:
130 Name: p
131
132 Applying untyped:
133 Name: f
134 ...to:
135constant expression 17 signed int
136 constant expression 3 signed int
137
138 Expression Statement:
139 Applying untyped:
140 Name: ?=?
141 ...to:
142 Address of:
143 Name: r
144 Tuple:
145 Name: x
146
147 Name: y
148
149 Name: z
150
151
152
153main: C function
[51b73452]154 with parameters
[5f2f2d7]155 argc: signed int
156 argv: pointer to pointer to char
[51b73452]157 returning
[5f2f2d7]158 rc: signed int
[51b73452]159 with body
[5f2f2d7]160 CompoundStmt
161 Declaration of a: signed int
162 Declaration of b: signed int
163 Declaration of c: signed int
164 Declaration of d: signed int
165 Declaration of t: instance of struct outer with initializer
166 Compound initializer:
167 Simple Initializer: Tuple:
168 Name: 1
169
170 constant expression 7.0 double
171
172 designated by: Name: f1
173 Name: f4
174
175 Expression Statement:
176 Applying untyped:
177 Name: f
178 ...to:
179 Tuple:
180 constant expression 3 signed int
181 constant expression 5 signed int
182
183 Expression Statement:
184 Applying untyped:
185 Name: g
186 ...to:
187 Tuple:
188 constant expression 3 signed int
189 constant expression 5 signed int
190constant expression 3 signed int
191 Expression Statement:
192 Applying untyped:
193 Name: f
194 ...to:
195 Name: t1
196
197 Expression Statement:
198 Applying untyped:
199 Name: g
200 ...to:
201 Name: t1
202constant expression 3 signed int
203 Expression Statement:
204 Tuple:
205 constant expression 3 signed int
206 constant expression 5 signed int
207
208 Expression Statement:
209 Applying untyped:
210 Name: ?=?
211 ...to:
212 Address of:
213 Tuple:
214 Name: a
215
216 Name: b
217
218constant expression 3 signed int
219 Expression Statement:
220 Applying untyped:
221 Name: ?=?
222 ...to:
223 Address of:
224 Tuple:
225 Name: a
226
227 Name: b
228
229 Tuple:
230 constant expression 4.6 double
231
232 Expression Statement:
233 Applying untyped:
234 Name: ?=?
235 ...to:
236 Address of:
237 Tuple:
238 Name: a
239
240 Name: b
241
242 Applying untyped:
243 Name: ?=?
244 ...to:
245 Address of:
246 Tuple:
247 Name: c
248
249 Name: d
250
251 Tuple:
252 constant expression 3 signed int
253 constant expression 5 signed int
254
255 Expression Statement:
256 Applying untyped:
257 Name: ?=?
258 ...to:
259 Address of:
260 Tuple:
261 Name: a
262
263 Name: b
264
265 Tuple:
266 Name: c
267
268
269 Tuple:
270 constant expression 2 signed int
271 Tuple:
272 Name: a
273
274 Name: b
275
276
277
278 Expression Statement:
279 Applying untyped:
280 Name: ?=?
281 ...to:
282 Address of:
283 Tuple:
284 Name: a
285
286 Name: b
287
288 Conditional expression on:
289 Cast of:
290 Applying untyped:
291 Name: ?!=?
292 ...to:
293 Applying untyped:
294 Name: ?>?
295 ...to:
296constant expression 3 signed int constant expression 4 signed int Name: 0
297
298 to:
299 signed int
300 First alternative:
301 Tuple:
302 Name: b
303
304 constant expression 6 signed int
305 Second alternative:
306 Tuple:
307 constant expression 7 signed int
308 constant expression 8 signed int
309
310
311 Expression Statement:
312 Applying untyped:
313 Name: ?=?
314 ...to:
315 Address of:
316 Name: t1
317 Tuple:
318 Name: a
319
320 Name: b
321
322
323 Expression Statement:
324 Applying untyped:
325 Name: ?=?
326 ...to:
327 Address of:
328 Name: t1
329 Applying untyped:
330 Name: ?=?
331 ...to:
332 Address of:
333 Name: t2
334 Tuple:
335 Name: a
336
337 Name: b
338
339
340 Expression Statement:
341 Applying untyped:
342 Name: ?=?
343 ...to:
344 Address of:
345 Tuple:
346 Name: a
347
348 Name: b
349
350 Applying untyped:
351 Name: ?=?
352 ...to:
353 Address of:
354 Tuple:
355 Name: c
356
357 Name: d
358
359 Applying untyped:
360 Name: ?+=?
361 ...to:
362 Address of:
363 Name: d
364 Applying untyped:
365 Name: ?+=?
366 ...to:
367 Address of:
368 Name: c
369 Name: 1
370
371 Expression Statement:
372 Applying untyped:
373 Name: ?=?
374 ...to:
375 Address of:
376 Tuple:
377 Name: a
378
379 Name: b
380
381 Applying untyped:
382 Name: ?=?
383 ...to:
384 Address of:
385 Tuple:
386 Name: c
387
388 Name: d
389
390 Name: t1
391
392 Expression Statement:
393 Applying untyped:
394 Name: ?=?
395 ...to:
396 Address of:
397 Tuple:
398 Name: a
399
400 Name: b
401
402 Applying untyped:
403 Name: ?=?
404 ...to:
405 Address of:
406 Name: t1
407 Tuple:
408 Name: c
409
410 Name: d
411
412
413 Expression Statement:
414 Applying untyped:
415 Name: ?=?
416 ...to:
417 Address of:
418 Tuple:
419 Name: a
420
421 Name: b
422
423 Applying untyped:
424 Name: ?=?
425 ...to:
426 Address of:
427 Name: t1
428 Applying untyped:
429 Name: ?=?
430 ...to:
431 Address of:
432 Name: t2
433 Tuple:
434 Name: c
435
436 Name: d
437
438
439 Expression Statement:
440 Applying untyped:
441 Name: ?=?
442 ...to:
443 Address of:
444 Name: t1
445 Applying untyped:
446 Name: ?=?
447 ...to:
448 Address of:
449 Tuple:
450 constant expression 3 signed int
451 constant expression 4 signed int
452 Applying untyped:
453 Name: ?=?
454 ...to:
455 Address of:
456 Tuple:
457 constant expression 3 signed int
458 constant expression 4 signed int
459 Applying untyped:
460 Name: ?=?
461 ...to:
462 Address of:
463 Name: t1
464 Tuple:
465 constant expression 3 signed int
466 constant expression 4 signed int
467
468 Expression Statement:
469 Applying untyped:
470 Name: ?=?
471 ...to:
472 Address of:
473 Name: s
474 Tuple:
475 constant expression 11 signed int
476 constant expression 12 signed int
477 constant expression 13 signed int
478 constant expression 3.14159 double
479
480 Expression Statement:
481 Applying untyped:
482 Name: ?=?
483 ...to:
484 Address of:
485 Name: s
486 Applying untyped:
487 Name: h
488 ...to:
489constant expression 3 signed int constant expression 3 signed int Name: 0
490constant expression "abc" array of char with dimension of constant expression 6 unsigned int
491 Expression Statement:
492 Applying untyped:
493 Name: ?=?
494 ...to:
495 Address of:
496 Name: sp
497 Name: sp
498
499 Expression Statement:
500 Applying untyped:
501 Name: printf
502 ...to:
503constant expression "expecting 3, 17, 23, 4; got %d, %d, %d, %d\n" array of char with dimension of constant expression 47 unsigned int Name: s
504
505 Expression Statement:
506 Applying untyped:
507 Name: ?=?
508 ...to:
509 Address of:
510 Name: rc
511 Name: 0
512
[51b73452]513
Note: See TracBrowser for help on using the repository browser.