source: translator/Tests/Parser/Expected/Tuple.tst @ 5c7fb6c

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change on this file since 5c7fb6c was 51b7345, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago

initial commit

  • Property mode set to 100644
File size: 11.9 KB
Line 
1f: a function
2  with parameters
3    int
4    int
5  returning int
6
7g: a function
8  with parameters
9    int
10    int
11    int
12  returning int
13
14h: a static function
15  with parameters
16    a: a int
17    b: a int
18    c: a pointer to int
19    d: a open array of char
20  returning tuple with members
21      int
22      pointer to int
23      pointer to int
24      int
25
26
27struct inner
28  with members
29    f2: a int
30    f3: a int
31
32s: a instance of struct outer
33  with members
34    f1: a int
35    i: a instance of struct inner
36
37    f4: a double
38
39sp: a pointer to instance of struct outer
40
41t1: a const volatile tuple with members
42  int
43  int
44
45t2: a static const tuple with members
46  int
47  const int
48
49t3: a static const tuple with members
50  int
51  const int
52
53printf: a function
54  with parameters
55    fmt: a pointer to char
56    and a variable number of other arguments
57  returning tuple with members
58      rc: a int
59
60
61printf: a function
62  with parameters
63    fmt: a pointer to char
64    and a variable number of other arguments
65  returning int
66
67f1: a function
68  with parameters
69    w: a int
70  returning tuple with members
71      x: a short
72      y: a unsigned
73
74  with body
75   
76    Application of:
77
78        Operator: Assign
79
80    ... on arguments:
81
82        Application of:
83
84            Operator: TupleC
85
86        ... on arguments:
87
88            Referencing: Variable: y
89
90            Referencing: Variable: x
91
92        Application of:
93
94            Operator: Assign
95
96        ... on arguments:
97
98            Application of:
99
100                Operator: TupleC
101
102            ... on arguments:
103
104                Referencing: Variable: x
105
106                Referencing: Variable: y
107
108            Application of:
109
110                Operator: TupleC
111
112            ... on arguments:
113
114                Referencing: Variable: w
115                23
116
117
118g1: a function
119  with no parameters
120  returning tuple with members
121      r: a tuple with members
122        int
123        char
124        long
125        int
126
127
128  with body
129    x: a short
130    p: a short
131    y: a unsigned int
132    z: a tuple with members
133      int
134      int
135
136   
137    Application of:
138
139        Operator: Assign
140
141    ... on arguments:
142
143        Application of:
144
145            Operator: TupleC
146
147        ... on arguments:
148
149            Referencing: Variable: x
150
151            Referencing: Variable: y
152
153            Referencing: Variable: z
154
155        Application of:
156
157            Operator: Cast
158
159        ... on arguments:
160            Type:              tuple with members
161                short
162                unsigned int
163                tuple with members
164                  int
165                  int
166
167
168
169            Application of:
170
171                Operator: TupleC
172
173            ... on arguments:
174
175                Referencing: Variable: p
176
177                Application of:
178
179                    Referencing: Variable: f
180
181                ... on arguments:
182                    17
183                3
184
185   
186    Application of:
187
188        Operator: Assign
189
190    ... on arguments:
191
192        Referencing: Variable: r
193
194        Application of:
195
196            Operator: TupleC
197
198        ... on arguments:
199
200            Referencing: Variable: x
201
202            Referencing: Variable: y
203
204            Referencing: Variable: z
205
206
207main: a function
208  with parameters
209    argc: a int
210    argv: a pointer to pointer to char
211  returning tuple with members
212      rc: a int
213
214  with body
215    a: a int
216    b: a int
217    c: a int
218    d: a int
219    t: a instance of struct outer
220
221      with initializer [designated by: ()( TupleC 1 7.0 ) ]
222   
223    Application of:
224
225        Referencing: Variable: f
226
227    ... on arguments:
228
229        Application of:
230
231            Operator: TupleC
232
233        ... on arguments:
234            3
235            5
236
237   
238    Application of:
239
240        Referencing: Variable: g
241
242    ... on arguments:
243
244        Application of:
245
246            Operator: TupleC
247
248        ... on arguments:
249            3
250            5
251        3
252
253   
254    Application of:
255
256        Referencing: Variable: f
257
258    ... on arguments:
259
260        Referencing: Variable: t1
261
262   
263    Application of:
264
265        Referencing: Variable: g
266
267    ... on arguments:
268
269        Referencing: Variable: t1
270        3
271
272   
273    Application of:
274
275        Operator: TupleC
276
277    ... on arguments:
278        3
279        5
280
281   
282    Application of:
283
284        Operator: Assign
285
286    ... on arguments:
287
288        Application of:
289
290            Operator: TupleC
291
292        ... on arguments:
293
294            Referencing: Variable: a
295
296            Referencing: Variable: b
297        3
298
299   
300    Application of:
301
302        Operator: Assign
303
304    ... on arguments:
305
306        Application of:
307
308            Operator: TupleC
309
310        ... on arguments:
311
312            Referencing: Variable: a
313
314            Referencing: Variable: b
315
316        Application of:
317
318            Operator: TupleC
319
320        ... on arguments:
321            4.6
322
323   
324    Application of:
325
326        Operator: Assign
327
328    ... on arguments:
329
330        Application of:
331
332            Operator: TupleC
333
334        ... on arguments:
335
336            Referencing: Variable: a
337
338            Referencing: Variable: b
339
340        Application of:
341
342            Operator: Assign
343
344        ... on arguments:
345
346            Application of:
347
348                Operator: TupleC
349
350            ... on arguments:
351
352                Referencing: Variable: c
353
354                Referencing: Variable: d
355
356            Application of:
357
358                Operator: TupleC
359
360            ... on arguments:
361                3
362                5
363
364   
365    Application of:
366
367        Operator: Assign
368
369    ... on arguments:
370
371        Application of:
372
373            Operator: TupleC
374
375        ... on arguments:
376
377            Referencing: Variable: a
378
379            Referencing: Variable: b
380
381            Application of:
382
383                Operator: TupleC
384
385            ... on arguments:
386
387                Referencing: Variable: c
388
389        Application of:
390
391            Operator: TupleC
392
393        ... on arguments:
394            2
395
396            Referencing: Variable: a
397
398            Referencing: Variable: b
399
400   
401    Application of:
402
403        Operator: Assign
404
405    ... on arguments:
406
407        Application of:
408
409            Operator: TupleC
410
411        ... on arguments:
412
413            Referencing: Variable: a
414
415            Referencing: Variable: b
416
417        Application of:
418
419            Operator: Cond
420
421        ... on arguments:
422
423            Application of:
424
425                Operator: GThan
426
427            ... on arguments:
428                3
429                4
430
431            Application of:
432
433                Operator: TupleC
434
435            ... on arguments:
436
437                Referencing: Variable: b
438                6
439
440            Application of:
441
442                Operator: TupleC
443
444            ... on arguments:
445                7
446                8
447
448   
449    Application of:
450
451        Operator: Assign
452
453    ... on arguments:
454
455        Referencing: Variable: t1
456
457        Application of:
458
459            Operator: TupleC
460
461        ... on arguments:
462
463            Referencing: Variable: a
464
465            Referencing: Variable: b
466
467   
468    Application of:
469
470        Operator: Assign
471
472    ... on arguments:
473
474        Referencing: Variable: t1
475
476        Application of:
477
478            Operator: Assign
479
480        ... on arguments:
481
482            Referencing: Variable: t2
483
484            Application of:
485
486                Operator: TupleC
487
488            ... on arguments:
489
490                Referencing: Variable: a
491
492                Referencing: Variable: b
493
494   
495    Application of:
496
497        Operator: Assign
498
499    ... on arguments:
500
501        Application of:
502
503            Operator: TupleC
504
505        ... on arguments:
506
507            Referencing: Variable: a
508
509            Referencing: Variable: b
510
511        Application of:
512
513            Operator: Assign
514
515        ... on arguments:
516
517            Application of:
518
519                Operator: TupleC
520
521            ... on arguments:
522
523                Referencing: Variable: c
524
525                Referencing: Variable: d
526
527            Application of:
528
529                Operator: PlusAssn
530
531            ... on arguments:
532
533                Referencing: Variable: d
534
535                Application of:
536
537                    Operator: PlusAssn
538
539                ... on arguments:
540
541                    Referencing: Variable: c
542
543                    Referencing: Variable: 1
544
545   
546    Application of:
547
548        Operator: Assign
549
550    ... on arguments:
551
552        Application of:
553
554            Operator: TupleC
555
556        ... on arguments:
557
558            Referencing: Variable: a
559
560            Referencing: Variable: b
561
562        Application of:
563
564            Operator: Assign
565
566        ... on arguments:
567
568            Application of:
569
570                Operator: TupleC
571
572            ... on arguments:
573
574                Referencing: Variable: c
575
576                Referencing: Variable: d
577
578            Referencing: Variable: t1
579
580   
581    Application of:
582
583        Operator: Assign
584
585    ... on arguments:
586
587        Application of:
588
589            Operator: TupleC
590
591        ... on arguments:
592
593            Referencing: Variable: a
594
595            Referencing: Variable: b
596
597        Application of:
598
599            Operator: Assign
600
601        ... on arguments:
602
603            Referencing: Variable: t1
604
605            Application of:
606
607                Operator: TupleC
608
609            ... on arguments:
610
611                Referencing: Variable: c
612
613                Referencing: Variable: d
614
615   
616    Application of:
617
618        Operator: Assign
619
620    ... on arguments:
621
622        Application of:
623
624            Operator: TupleC
625
626        ... on arguments:
627
628            Referencing: Variable: a
629
630            Referencing: Variable: b
631
632        Application of:
633
634            Operator: Assign
635
636        ... on arguments:
637
638            Referencing: Variable: t1
639
640            Application of:
641
642                Operator: Assign
643
644            ... on arguments:
645
646                Referencing: Variable: t2
647
648                Application of:
649
650                    Operator: TupleC
651
652                ... on arguments:
653
654                    Referencing: Variable: c
655
656                    Referencing: Variable: d
657
658   
659    Application of:
660
661        Operator: Assign
662
663    ... on arguments:
664
665        Referencing: Variable: t1
666
667        Application of:
668
669            Operator: Assign
670
671        ... on arguments:
672
673            Application of:
674
675                Operator: TupleC
676
677            ... on arguments:
678                3
679                4
680
681            Application of:
682
683                Operator: Assign
684
685            ... on arguments:
686
687                Application of:
688
689                    Operator: TupleC
690
691                ... on arguments:
692                    3
693                    4
694
695                Application of:
696
697                    Operator: Assign
698
699                ... on arguments:
700
701                    Referencing: Variable: t1
702
703                    Application of:
704
705                        Operator: TupleC
706
707                    ... on arguments:
708                        3
709                        4
710
711   
712    Application of:
713
714        Operator: Assign
715
716    ... on arguments:
717
718        Referencing: Variable: s
719
720        Application of:
721
722            Operator: TupleC
723
724        ... on arguments:
725            11
726
727            Application of:
728
729                Operator: Comma
730
731            ... on arguments:
732                12
733                13
734            3.14159
735
736   
737    Application of:
738
739        Operator: Assign
740
741    ... on arguments:
742
743        Referencing: Variable: s
744
745        Application of:
746
747            Referencing: Variable: h
748
749        ... on arguments:
750            3
751            3
752
753            Referencing: Variable: 0
754            ""abc""
755
756   
757    Application of:
758
759        Operator: Assign
760
761    ... on arguments:
762
763        Referencing: Variable: sp
764
765        Referencing: Variable: sp
766
767   
768    Application of:
769
770        Referencing: Variable: printf
771
772    ... on arguments:
773        ""expecting 3, 17, 23, 4; got %d, %d, %d, %d\n""
774
775        Referencing: Variable: s
776
777   
778    Application of:
779
780        Operator: Assign
781
782    ... on arguments:
783
784        Referencing: Variable: rc
785
786        Referencing: Variable: 0
787
788
Note: See TracBrowser for help on using the repository browser.