source: src/Tests/Expect-v/StructMember.txt @ 784deab

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 784deab was b1d6dd5, checked in by Peter A. Buhr <pabuhr@…>, 9 years ago

fix parsing error for EOF message, change cfa-ccp -x flag to -v, regression testing third attempt: consolidate example programs

  • Property mode set to 100644
File size: 24.5 KB
RevLine 
[b1d6dd5]1struct S
2    with members
3      m1: signed int with bitfield width constant expression 3 signed int
4      m2: signed int with bitfield width constant expression 4 signed int
5      signed int with bitfield width constant expression 2 signed int
6      signed int with bitfield width constant expression 3 signed int
7      signed int with bitfield width constant expression 4 signed int
8      m3: signed int
9      m4: signed int
10      m5: signed int
11      m6: signed int
12      m7: pointer to signed int
13      m8: pointer to signed int
14      m9: pointer to signed int
15      m10: pointer to function
16            accepting unspecified arguments
17          returning
18            signed int
19
20      m11: pointer to function
21          with parameters
22            signed int
23          returning
24            pointer to signed int
25
26      T: signed int
27      T: signed int
28      m12: pointer to signed int
29      m13: pointer to signed int
30      m14: pointer to function
31          with parameters
32            signed int
33          returning
34            pointer to signed int
35
36      signed int
37      signed int
38      signed int
39      signed int
40      pointer to signed int
41      signed int
42      signed int
43      pointer to signed int
44      pointer to signed int
45      pointer to signed int
46      pointer to signed int
47      pointer to signed int
48      pointer to signed int
49      pointer to function
50            accepting unspecified arguments
51          returning
52            signed int
53
54      pointer to pointer to function
55          with parameters
56            signed int
57          returning
58            signed int
59
60      signed int
61
62?=?: automatically generated inline static function
63    with parameters
64      _dst: pointer to instance of struct S
65      _src: instance of struct S
66    returning
67      instance of struct S
68    with body
69      CompoundStmt
70                  Expression Statement:
71            Applying untyped:
72                Name: ?=?
73            ...to:
74                Address of:
75                  Member Expression, with field:
76                    m1: signed int with bitfield width constant expression 3 signed int
77                  from aggregate:
78                    Applying untyped:
79                        Name: *?
80                    ...to:
81                        Variable Expression: _dst: pointer to instance of struct S
82                Member Expression, with field:
83                  m1: signed int with bitfield width constant expression 3 signed int
84                from aggregate:
85                  Variable Expression: _src: instance of struct S
86
87                  Expression Statement:
88            Applying untyped:
89                Name: ?=?
90            ...to:
91                Address of:
92                  Member Expression, with field:
93                    m2: signed int with bitfield width constant expression 4 signed int
94                  from aggregate:
95                    Applying untyped:
96                        Name: *?
97                    ...to:
98                        Variable Expression: _dst: pointer to instance of struct S
99                Member Expression, with field:
100                  m2: signed int with bitfield width constant expression 4 signed int
101                from aggregate:
102                  Variable Expression: _src: instance of struct S
103
104                  Expression Statement:
105            Applying untyped:
106                Name: ?=?
107            ...to:
108                Address of:
109                  Member Expression, with field:
110                    m3: signed int
111                  from aggregate:
112                    Applying untyped:
113                        Name: *?
114                    ...to:
115                        Variable Expression: _dst: pointer to instance of struct S
116                Member Expression, with field:
117                  m3: signed int
118                from aggregate:
119                  Variable Expression: _src: instance of struct S
120
121                  Expression Statement:
122            Applying untyped:
123                Name: ?=?
124            ...to:
125                Address of:
126                  Member Expression, with field:
127                    m4: signed int
128                  from aggregate:
129                    Applying untyped:
130                        Name: *?
131                    ...to:
132                        Variable Expression: _dst: pointer to instance of struct S
133                Member Expression, with field:
134                  m4: signed int
135                from aggregate:
136                  Variable Expression: _src: instance of struct S
137
138                  Expression Statement:
139            Applying untyped:
140                Name: ?=?
141            ...to:
142                Address of:
143                  Member Expression, with field:
144                    m5: signed int
145                  from aggregate:
146                    Applying untyped:
147                        Name: *?
148                    ...to:
149                        Variable Expression: _dst: pointer to instance of struct S
150                Member Expression, with field:
151                  m5: signed int
152                from aggregate:
153                  Variable Expression: _src: instance of struct S
154
155                  Expression Statement:
156            Applying untyped:
157                Name: ?=?
158            ...to:
159                Address of:
160                  Member Expression, with field:
161                    m6: signed int
162                  from aggregate:
163                    Applying untyped:
164                        Name: *?
165                    ...to:
166                        Variable Expression: _dst: pointer to instance of struct S
167                Member Expression, with field:
168                  m6: signed int
169                from aggregate:
170                  Variable Expression: _src: instance of struct S
171
172                  Expression Statement:
173            Applying untyped:
174                Name: ?=?
175            ...to:
176                Address of:
177                  Member Expression, with field:
178                    m7: pointer to signed int
179                  from aggregate:
180                    Applying untyped:
181                        Name: *?
182                    ...to:
183                        Variable Expression: _dst: pointer to instance of struct S
184                Member Expression, with field:
185                  m7: pointer to signed int
186                from aggregate:
187                  Variable Expression: _src: instance of struct S
188
189                  Expression Statement:
190            Applying untyped:
191                Name: ?=?
192            ...to:
193                Address of:
194                  Member Expression, with field:
195                    m8: pointer to signed int
196                  from aggregate:
197                    Applying untyped:
198                        Name: *?
199                    ...to:
200                        Variable Expression: _dst: pointer to instance of struct S
201                Member Expression, with field:
202                  m8: pointer to signed int
203                from aggregate:
204                  Variable Expression: _src: instance of struct S
205
206                  Expression Statement:
207            Applying untyped:
208                Name: ?=?
209            ...to:
210                Address of:
211                  Member Expression, with field:
212                    m9: pointer to signed int
213                  from aggregate:
214                    Applying untyped:
215                        Name: *?
216                    ...to:
217                        Variable Expression: _dst: pointer to instance of struct S
218                Member Expression, with field:
219                  m9: pointer to signed int
220                from aggregate:
221                  Variable Expression: _src: instance of struct S
222
223                  Expression Statement:
224            Applying untyped:
225                Name: ?=?
226            ...to:
227                Address of:
228                  Member Expression, with field:
229                    m10: pointer to function
230                        accepting unspecified arguments
231                      returning
232                        signed int
233
234                  from aggregate:
235                    Applying untyped:
236                        Name: *?
237                    ...to:
238                        Variable Expression: _dst: pointer to instance of struct S
239                Member Expression, with field:
240                  m10: pointer to function
241                      accepting unspecified arguments
242                    returning
243                      signed int
244
245                from aggregate:
246                  Variable Expression: _src: instance of struct S
247
248                  Expression Statement:
249            Applying untyped:
250                Name: ?=?
251            ...to:
252                Address of:
253                  Member Expression, with field:
254                    m11: pointer to function
255                      with parameters
256                        signed int
257                      returning
258                        pointer to signed int
259
260                  from aggregate:
261                    Applying untyped:
262                        Name: *?
263                    ...to:
264                        Variable Expression: _dst: pointer to instance of struct S
265                Member Expression, with field:
266                  m11: pointer to function
267                    with parameters
268                      signed int
269                    returning
270                      pointer to signed int
271
272                from aggregate:
273                  Variable Expression: _src: instance of struct S
274
275                  Expression Statement:
276            Applying untyped:
277                Name: ?=?
278            ...to:
279                Address of:
280                  Member Expression, with field:
281                    T: signed int
282                  from aggregate:
283                    Applying untyped:
284                        Name: *?
285                    ...to:
286                        Variable Expression: _dst: pointer to instance of struct S
287                Member Expression, with field:
288                  T: signed int
289                from aggregate:
290                  Variable Expression: _src: instance of struct S
291
292                  Expression Statement:
293            Applying untyped:
294                Name: ?=?
295            ...to:
296                Address of:
297                  Member Expression, with field:
298                    T: signed int
299                  from aggregate:
300                    Applying untyped:
301                        Name: *?
302                    ...to:
303                        Variable Expression: _dst: pointer to instance of struct S
304                Member Expression, with field:
305                  T: signed int
306                from aggregate:
307                  Variable Expression: _src: instance of struct S
308
309                  Expression Statement:
310            Applying untyped:
311                Name: ?=?
312            ...to:
313                Address of:
314                  Member Expression, with field:
315                    m12: pointer to signed int
316                  from aggregate:
317                    Applying untyped:
318                        Name: *?
319                    ...to:
320                        Variable Expression: _dst: pointer to instance of struct S
321                Member Expression, with field:
322                  m12: pointer to signed int
323                from aggregate:
324                  Variable Expression: _src: instance of struct S
325
326                  Expression Statement:
327            Applying untyped:
328                Name: ?=?
329            ...to:
330                Address of:
331                  Member Expression, with field:
332                    m13: pointer to signed int
333                  from aggregate:
334                    Applying untyped:
335                        Name: *?
336                    ...to:
337                        Variable Expression: _dst: pointer to instance of struct S
338                Member Expression, with field:
339                  m13: pointer to signed int
340                from aggregate:
341                  Variable Expression: _src: instance of struct S
342
343                  Expression Statement:
344            Applying untyped:
345                Name: ?=?
346            ...to:
347                Address of:
348                  Member Expression, with field:
349                    m14: pointer to function
350                      with parameters
351                        signed int
352                      returning
353                        pointer to signed int
354
355                  from aggregate:
356                    Applying untyped:
357                        Name: *?
358                    ...to:
359                        Variable Expression: _dst: pointer to instance of struct S
360                Member Expression, with field:
361                  m14: pointer to function
362                    with parameters
363                      signed int
364                    returning
365                      pointer to signed int
366
367                from aggregate:
368                  Variable Expression: _src: instance of struct S
369
370                  Expression Statement:
371            Applying untyped:
372                Name: ?=?
373            ...to:
374                Address of:
375                  Member Expression, with field:
376                    signed int
377                  from aggregate:
378                    Applying untyped:
379                        Name: *?
380                    ...to:
381                        Variable Expression: _dst: pointer to instance of struct S
382                Member Expression, with field:
383                  signed int
384                from aggregate:
385                  Variable Expression: _src: instance of struct S
386
387                  Expression Statement:
388            Applying untyped:
389                Name: ?=?
390            ...to:
391                Address of:
392                  Member Expression, with field:
393                    signed int
394                  from aggregate:
395                    Applying untyped:
396                        Name: *?
397                    ...to:
398                        Variable Expression: _dst: pointer to instance of struct S
399                Member Expression, with field:
400                  signed int
401                from aggregate:
402                  Variable Expression: _src: instance of struct S
403
404                  Expression Statement:
405            Applying untyped:
406                Name: ?=?
407            ...to:
408                Address of:
409                  Member Expression, with field:
410                    signed int
411                  from aggregate:
412                    Applying untyped:
413                        Name: *?
414                    ...to:
415                        Variable Expression: _dst: pointer to instance of struct S
416                Member Expression, with field:
417                  signed int
418                from aggregate:
419                  Variable Expression: _src: instance of struct S
420
421                  Expression Statement:
422            Applying untyped:
423                Name: ?=?
424            ...to:
425                Address of:
426                  Member Expression, with field:
427                    signed int
428                  from aggregate:
429                    Applying untyped:
430                        Name: *?
431                    ...to:
432                        Variable Expression: _dst: pointer to instance of struct S
433                Member Expression, with field:
434                  signed int
435                from aggregate:
436                  Variable Expression: _src: instance of struct S
437
438                  Expression Statement:
439            Applying untyped:
440                Name: ?=?
441            ...to:
442                Address of:
443                  Member Expression, with field:
444                    pointer to signed int
445                  from aggregate:
446                    Applying untyped:
447                        Name: *?
448                    ...to:
449                        Variable Expression: _dst: pointer to instance of struct S
450                Member Expression, with field:
451                  pointer to signed int
452                from aggregate:
453                  Variable Expression: _src: instance of struct S
454
455                  Expression Statement:
456            Applying untyped:
457                Name: ?=?
458            ...to:
459                Address of:
460                  Member Expression, with field:
461                    signed int
462                  from aggregate:
463                    Applying untyped:
464                        Name: *?
465                    ...to:
466                        Variable Expression: _dst: pointer to instance of struct S
467                Member Expression, with field:
468                  signed int
469                from aggregate:
470                  Variable Expression: _src: instance of struct S
471
472                  Expression Statement:
473            Applying untyped:
474                Name: ?=?
475            ...to:
476                Address of:
477                  Member Expression, with field:
478                    signed int
479                  from aggregate:
480                    Applying untyped:
481                        Name: *?
482                    ...to:
483                        Variable Expression: _dst: pointer to instance of struct S
484                Member Expression, with field:
485                  signed int
486                from aggregate:
487                  Variable Expression: _src: instance of struct S
488
489                  Expression Statement:
490            Applying untyped:
491                Name: ?=?
492            ...to:
493                Address of:
494                  Member Expression, with field:
495                    pointer to signed int
496                  from aggregate:
497                    Applying untyped:
498                        Name: *?
499                    ...to:
500                        Variable Expression: _dst: pointer to instance of struct S
501                Member Expression, with field:
502                  pointer to signed int
503                from aggregate:
504                  Variable Expression: _src: instance of struct S
505
506                  Expression Statement:
507            Applying untyped:
508                Name: ?=?
509            ...to:
510                Address of:
511                  Member Expression, with field:
512                    pointer to signed int
513                  from aggregate:
514                    Applying untyped:
515                        Name: *?
516                    ...to:
517                        Variable Expression: _dst: pointer to instance of struct S
518                Member Expression, with field:
519                  pointer to signed int
520                from aggregate:
521                  Variable Expression: _src: instance of struct S
522
523                  Expression Statement:
524            Applying untyped:
525                Name: ?=?
526            ...to:
527                Address of:
528                  Member Expression, with field:
529                    pointer to signed int
530                  from aggregate:
531                    Applying untyped:
532                        Name: *?
533                    ...to:
534                        Variable Expression: _dst: pointer to instance of struct S
535                Member Expression, with field:
536                  pointer to signed int
537                from aggregate:
538                  Variable Expression: _src: instance of struct S
539
540                  Expression Statement:
541            Applying untyped:
542                Name: ?=?
543            ...to:
544                Address of:
545                  Member Expression, with field:
546                    pointer to signed int
547                  from aggregate:
548                    Applying untyped:
549                        Name: *?
550                    ...to:
551                        Variable Expression: _dst: pointer to instance of struct S
552                Member Expression, with field:
553                  pointer to signed int
554                from aggregate:
555                  Variable Expression: _src: instance of struct S
556
557                  Expression Statement:
558            Applying untyped:
559                Name: ?=?
560            ...to:
561                Address of:
562                  Member Expression, with field:
563                    pointer to signed int
564                  from aggregate:
565                    Applying untyped:
566                        Name: *?
567                    ...to:
568                        Variable Expression: _dst: pointer to instance of struct S
569                Member Expression, with field:
570                  pointer to signed int
571                from aggregate:
572                  Variable Expression: _src: instance of struct S
573
574                  Expression Statement:
575            Applying untyped:
576                Name: ?=?
577            ...to:
578                Address of:
579                  Member Expression, with field:
580                    pointer to signed int
581                  from aggregate:
582                    Applying untyped:
583                        Name: *?
584                    ...to:
585                        Variable Expression: _dst: pointer to instance of struct S
586                Member Expression, with field:
587                  pointer to signed int
588                from aggregate:
589                  Variable Expression: _src: instance of struct S
590
591                  Expression Statement:
592            Applying untyped:
593                Name: ?=?
594            ...to:
595                Address of:
596                  Member Expression, with field:
597                    pointer to function
598                        accepting unspecified arguments
599                      returning
600                        signed int
601
602                  from aggregate:
603                    Applying untyped:
604                        Name: *?
605                    ...to:
606                        Variable Expression: _dst: pointer to instance of struct S
607                Member Expression, with field:
608                  pointer to function
609                      accepting unspecified arguments
610                    returning
611                      signed int
612
613                from aggregate:
614                  Variable Expression: _src: instance of struct S
615
616                  Expression Statement:
617            Applying untyped:
618                Name: ?=?
619            ...to:
620                Address of:
621                  Member Expression, with field:
622                    pointer to pointer to function
623                      with parameters
624                        signed int
625                      returning
626                        signed int
627
628                  from aggregate:
629                    Applying untyped:
630                        Name: *?
631                    ...to:
632                        Variable Expression: _dst: pointer to instance of struct S
633                Member Expression, with field:
634                  pointer to pointer to function
635                    with parameters
636                      signed int
637                    returning
638                      signed int
639
640                from aggregate:
641                  Variable Expression: _src: instance of struct S
642
643                  Expression Statement:
644            Applying untyped:
645                Name: ?=?
646            ...to:
647                Address of:
648                  Member Expression, with field:
649                    signed int
650                  from aggregate:
651                    Applying untyped:
652                        Name: *?
653                    ...to:
654                        Variable Expression: _dst: pointer to instance of struct S
655                Member Expression, with field:
656                  signed int
657                from aggregate:
658                  Variable Expression: _src: instance of struct S
659
660                  Return Statement, returning: Variable Expression: _src: instance of struct S
661
662
663
664s: instance of struct S
665union U
666    with members
667      m1: array of signed int with dimension of constant expression 5 signed int
668      m2: array of signed int with dimension of constant expression 5 signed int
669      m3: pointer to signed int
670      m4: pointer to signed int
671
672?=?: automatically generated inline static function
673    with parameters
674      _dst: pointer to instance of union U
675      _src: instance of union U
676    returning
677      instance of union U
678    with body
679      CompoundStmt
680                  Expression Statement:
681            Applying untyped:
682                Name: __builtin_memcpy
683            ...to:
684                Variable Expression: _dst: pointer to instance of union U
685                Address of:
686                  Variable Expression: _src: instance of union U
687                Sizeof Expression on: instance of union U
688
689                  Return Statement, returning: Variable Expression: _src: instance of union U
690
691
692
693u: instance of union U
Note: See TracBrowser for help on using the repository browser.