• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<abi-corpus version='2.1'>
2  <elf-function-symbols>
3    <!-- foo(S&) -->
4    <elf-symbol name='_Z3fooR1S' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
5  </elf-function-symbols>
6  <abi-instr address-size='64' path='test-anonymous-members-0.cc' comp-dir-path='/home/dodji/git/libabigail/fixes/tests/data/test-annotate' language='LANG_C_plus_plus'>
7    <!-- char -->
8    <type-decl name='char' size-in-bits='8' id='type-id-1'/>
9    <!-- double -->
10    <type-decl name='double' size-in-bits='64' id='type-id-2'/>
11    <!-- int -->
12    <type-decl name='int' size-in-bits='32' id='type-id-3'/>
13    <!-- struct S -->
14    <class-decl name='S' size-in-bits='256' is-struct='yes' visibility='default' filepath='/home/dodji/git/libabigail/fixes/tests/data/test-annotate/test-anonymous-members-0.cc' line='1' column='1' id='type-id-4'>
15      <member-type access='public'>
16        <!-- enum S::__anonymous_enum__ -->
17        <enum-decl name='__anonymous_enum__' is-anonymous='yes' filepath='/home/dodji/git/libabigail/fixes/tests/data/test-annotate/test-anonymous-members-0.cc' line='18' column='1' id='type-id-5'>
18          <underlying-type type-id='type-id-6'/>
19          <enumerator name='one' value='0'/>
20          <enumerator name='two' value='1'/>
21        </enum-decl>
22      </member-type>
23      <member-type access='public'>
24        <!-- enum S::__anonymous_enum__1 -->
25        <enum-decl name='__anonymous_enum__1' is-anonymous='yes' filepath='/home/dodji/git/libabigail/fixes/tests/data/test-annotate/test-anonymous-members-0.cc' line='20' column='1' id='type-id-7'>
26          <underlying-type type-id='type-id-6'/>
27          <enumerator name='three' value='0'/>
28          <enumerator name='four' value='1'/>
29        </enum-decl>
30      </member-type>
31      <member-type access='public'>
32        <!-- enum S::__anonymous_enum__2 -->
33        <enum-decl name='__anonymous_enum__2' is-anonymous='yes' filepath='/home/dodji/git/libabigail/fixes/tests/data/test-annotate/test-anonymous-members-0.cc' line='22' column='1' id='type-id-8'>
34          <underlying-type type-id='type-id-6'/>
35          <enumerator name='five' value='0'/>
36          <enumerator name='six' value='1'/>
37        </enum-decl>
38      </member-type>
39      <member-type access='public'>
40        <!-- struct {char bar;} -->
41        <class-decl name='__anonymous_struct__1' size-in-bits='8' is-struct='yes' is-anonymous='yes' visibility='default' filepath='/home/dodji/git/libabigail/fixes/tests/data/test-annotate/test-anonymous-members-0.cc' line='9' column='1' id='type-id-9'>
42          <data-member access='public' layout-offset-in-bits='0'>
43            <!-- char bar -->
44            <var-decl name='bar' type-id='type-id-1' visibility='default' filepath='/home/dodji/git/libabigail/fixes/tests/data/test-annotate/test-anonymous-members-0.cc' line='10' column='1'/>
45          </data-member>
46        </class-decl>
47      </member-type>
48      <member-type access='public'>
49        <!-- struct {char baz;} -->
50        <class-decl name='__anonymous_struct__2' size-in-bits='8' is-struct='yes' is-anonymous='yes' visibility='default' filepath='/home/dodji/git/libabigail/fixes/tests/data/test-annotate/test-anonymous-members-0.cc' line='14' column='1' id='type-id-10'>
51          <data-member access='public' layout-offset-in-bits='0'>
52            <!-- char baz -->
53            <var-decl name='baz' type-id='type-id-1' visibility='default' filepath='/home/dodji/git/libabigail/fixes/tests/data/test-annotate/test-anonymous-members-0.cc' line='15' column='1'/>
54          </data-member>
55        </class-decl>
56      </member-type>
57      <member-type access='public'>
58        <!-- struct {int m;} -->
59        <class-decl name='__anonymous_struct__' size-in-bits='32' is-struct='yes' is-anonymous='yes' visibility='default' filepath='/home/dodji/git/libabigail/fixes/tests/data/test-annotate/test-anonymous-members-0.cc' line='4' column='1' id='type-id-11'>
60          <data-member access='public' layout-offset-in-bits='0'>
61            <!-- int m -->
62            <var-decl name='m' type-id='type-id-3' visibility='default' filepath='/home/dodji/git/libabigail/fixes/tests/data/test-annotate/test-anonymous-members-0.cc' line='5' column='1'/>
63          </data-member>
64        </class-decl>
65      </member-type>
66      <member-type access='public'>
67        <!-- union {int a; char b;} -->
68        <union-decl name='__anonymous_union__' size-in-bits='32' is-anonymous='yes' visibility='default' filepath='/home/dodji/git/libabigail/fixes/tests/data/test-annotate/test-anonymous-members-0.cc' line='24' column='1' id='type-id-12'>
69          <data-member access='public'>
70            <!-- int a -->
71            <var-decl name='a' type-id='type-id-3' visibility='default' filepath='/home/dodji/git/libabigail/fixes/tests/data/test-annotate/test-anonymous-members-0.cc' line='24' column='1'/>
72          </data-member>
73          <data-member access='public'>
74            <!-- char b -->
75            <var-decl name='b' type-id='type-id-1' visibility='default' filepath='/home/dodji/git/libabigail/fixes/tests/data/test-annotate/test-anonymous-members-0.cc' line='24' column='1'/>
76          </data-member>
77        </union-decl>
78      </member-type>
79      <member-type access='public'>
80        <!-- union {unsigned int c; double d;} -->
81        <union-decl name='__anonymous_union__1' size-in-bits='64' is-anonymous='yes' visibility='default' filepath='/home/dodji/git/libabigail/fixes/tests/data/test-annotate/test-anonymous-members-0.cc' line='26' column='1' id='type-id-13'>
82          <data-member access='public'>
83            <!-- unsigned int c -->
84            <var-decl name='c' type-id='type-id-14' visibility='default' filepath='/home/dodji/git/libabigail/fixes/tests/data/test-annotate/test-anonymous-members-0.cc' line='26' column='1'/>
85          </data-member>
86          <data-member access='public'>
87            <!-- double d -->
88            <var-decl name='d' type-id='type-id-2' visibility='default' filepath='/home/dodji/git/libabigail/fixes/tests/data/test-annotate/test-anonymous-members-0.cc' line='26' column='1'/>
89          </data-member>
90        </union-decl>
91      </member-type>
92      <data-member access='public' layout-offset-in-bits='0'>
93        <!-- struct {int m;} -->
94        <var-decl name='' type-id='type-id-11' visibility='default'/>
95      </data-member>
96      <data-member access='public' layout-offset-in-bits='32'>
97        <!-- struct {char bar;} -->
98        <var-decl name='' type-id='type-id-9' visibility='default'/>
99      </data-member>
100      <data-member access='public' layout-offset-in-bits='40'>
101        <!-- struct {char baz;} -->
102        <var-decl name='' type-id='type-id-10' visibility='default'/>
103      </data-member>
104      <data-member access='public' layout-offset-in-bits='64'>
105        <!-- S::__anonymous_enum__ S::e1 -->
106        <var-decl name='e1' type-id='type-id-5' visibility='default' filepath='/home/dodji/git/libabigail/fixes/tests/data/test-annotate/test-anonymous-members-0.cc' line='18' column='1'/>
107      </data-member>
108      <data-member access='public' layout-offset-in-bits='96'>
109        <!-- S::__anonymous_enum__1 S::e2 -->
110        <var-decl name='e2' type-id='type-id-7' visibility='default' filepath='/home/dodji/git/libabigail/fixes/tests/data/test-annotate/test-anonymous-members-0.cc' line='20' column='1'/>
111      </data-member>
112      <data-member access='public' layout-offset-in-bits='128'>
113        <!-- S::__anonymous_enum__2 S::e3 -->
114        <var-decl name='e3' type-id='type-id-8' visibility='default' filepath='/home/dodji/git/libabigail/fixes/tests/data/test-annotate/test-anonymous-members-0.cc' line='22' column='1'/>
115      </data-member>
116      <data-member access='public' layout-offset-in-bits='160'>
117        <!-- union {int a; char b;} -->
118        <var-decl name='' type-id='type-id-12' visibility='default'/>
119      </data-member>
120      <data-member access='public' layout-offset-in-bits='192'>
121        <!-- union {unsigned int c; double d;} -->
122        <var-decl name='' type-id='type-id-13' visibility='default'/>
123      </data-member>
124    </class-decl>
125    <!-- unnamed&#45;enum&#45;underlying&#45;type&#45;32 -->
126    <type-decl name='unnamed-enum-underlying-type-32' is-anonymous='yes' size-in-bits='32' alignment-in-bits='32' id='type-id-6'/>
127    <!-- unsigned int -->
128    <type-decl name='unsigned int' size-in-bits='32' id='type-id-14'/>
129    <!-- S& -->
130    <reference-type-def kind='lvalue' type-id='type-id-4' size-in-bits='64' id='type-id-15'/>
131    <!-- void -->
132    <type-decl name='void' id='type-id-16'/>
133    <!-- void foo(S&) -->
134    <function-decl name='foo' mangled-name='_Z3fooR1S' filepath='/home/dodji/git/libabigail/fixes/tests/data/test-annotate/test-anonymous-members-0.cc' line='30' column='1' visibility='default' binding='global' size-in-bits='64' elf-symbol-id='_Z3fooR1S'>
135      <!-- parameter of type 'S&' -->
136      <parameter type-id='type-id-15'/>
137      <!-- void -->
138      <return type-id='type-id-16'/>
139    </function-decl>
140  </abi-instr>
141</abi-corpus>
142