source: src/Tests/Expect-a/Initialization.txt @ b1d6dd5

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 b1d6dd5 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: 4.1 KB
Line 
1x11: pointer to signed int with initializer
2  Simple Initializer:     Name: 0
3
4x12: signed int with initializer
5  Simple Initializer:     Name: 0
6
7x21: pointer to signed int with initializer
8  Simple Initializer:     Name: 0
9
10x22: signed int with initializer
11  Simple Initializer:     Name: 0
12
13y1: array of signed int with dimension of constant expression 20 signed int
14y2: array of signed int with dimension of constant expression 20 signed int
15struct __anonymous0
16    with members
17      w: tuple of types
18          signed int
19
20
21a: instance of struct __anonymous0 with initializer
22  Compound initializer: 
23    Simple Initializer:       Tuple:
24        constant expression 2 signed int
25
26      designated by:         Name: w
27
28struct __anonymous1
29    with members
30      a: array of signed int with dimension of constant expression 3 signed int
31      b: signed int
32
33w: open array of instance of struct __anonymous1 with initializer
34  Compound initializer: 
35    Compound initializer:        designated by: [        Name: 0
36        Name: a
37      ]
38      Simple Initializer:         Name: 1
39
40    Simple Initializer:       Name: 1
41
42      designated by:         Name: 0
43        Name: b
44
45    Simple Initializer: constant expression 2 signed int
46      designated by:         Name: 1
47        Name: a
48        Name: 0
49
50struct __anonymous3
51    with members
52      f1: signed int
53      f2: signed int
54      f3: signed int
55      struct __anonymous2
56          with members
57            g1: signed int
58            g2: signed int
59            g3: signed int
60
61      f4: array of instance of struct __anonymous2 with dimension of constant expression 4 signed int
62
63v7: instance of struct __anonymous3 with initializer
64  Compound initializer: 
65    Simple Initializer: constant expression 4 signed int
66      designated by:         Name: f1
67
68    Simple Initializer: constant expression 3 signed int
69      designated by:         Name: f2
70
71    Compound initializer:        designated by: [        Name: f4
72constant expression 2 signed int       ]
73      Simple Initializer: constant expression 3 signed int
74        designated by:           Name: g1
75
76      Simple Initializer:         Name: 0
77
78        designated by:           Name: g3
79
80    Simple Initializer: constant expression 7 signed int
81      designated by:         Name: f4
82constant expression 3 signed int         Name: g3
83
84struct point
85    with members
86      x: signed int
87      z: signed int
88      struct __anonymous4
89          with members
90            y1: signed int
91            y2: signed int
92            y3: signed int
93
94      y: instance of struct __anonymous4
95      w: signed int
96
97struct quintet
98    with members
99      v: signed int
100      w: signed int
101      x: signed int
102      y: signed int
103      z: signed int
104
105main: C function
106      accepting unspecified arguments
107    returning
108      signed int
109    with body
110      CompoundStmt
111        Declaration of p1: instance of struct point with initializer
112          Compound initializer: 
113            Simple Initializer: constant expression 3 signed int
114              designated by:                 Name: x
115
116        Declaration of p2: instance of struct point with initializer
117          Compound initializer: 
118            Simple Initializer: constant expression 3 signed int
119            Simple Initializer: constant expression 4 signed int
120        Declaration of p3: instance of struct point with initializer
121          Compound initializer: 
122            Simple Initializer: constant expression 5 signed int
123              designated by:                 Name: x
124                Name: z
125
126            Compound initializer:                designated by: [                Name: y
127              ]
128              Simple Initializer: constant expression 6 signed int
129                designated by:                   Name: y3
130                  Name: y1
131
132              Simple Initializer: constant expression 17 signed int
133        Declaration of p4: instance of struct point with initializer
134          Compound initializer: 
135            Simple Initializer: constant expression 5 signed int
136              designated by:                 Name: w
137
138            Simple Initializer: constant expression 4 signed int
139
Note: See TracBrowser for help on using the repository browser.