mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-23 10:12:25 +00:00
8f9b8e76a0
* tests/test-read-dwarf.cc: New dwarf reading regression test. * tests/data/test-read-dwarf/test0: New test input. * data/test-read-dwarf/test0: Likewise. * data/test-read-dwarf/test0.abi: Likewise. * data/test-read-dwarf/test0.cc: Likewise. * data/test-read-dwarf/test1: Likewise. * data/test-read-dwarf/test1.abi: Likewise. * data/test-read-dwarf/test1.cc: Likewise. * tests/Makefile.am: Build the new tests/test-read-dwarf.cc file. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
44 lines
3.4 KiB
Plaintext
44 lines
3.4 KiB
Plaintext
<abi-corpus path='data/test-read-dwarf/test0'>
|
|
<abi-instr version='1.0' address-size='64' path='test0.cc'>
|
|
<type-decl name='long int' size-in-bits='64' alignment-in-bits='64' id='type-id-1'/>
|
|
<type-decl name='char' size-in-bits='8' alignment-in-bits='8' id='type-id-2'/>
|
|
<pointer-type-def type-id='type-id-2' size-in-bits='64' alignment-in-bits='64' id='type-id-3'/>
|
|
<type-decl name='int' size-in-bits='32' alignment-in-bits='32' id='type-id-4'/>
|
|
<reference-type-def kind='lvalue' type-id='type-id-4' size-in-bits='64' alignment-in-bits='64' id='type-id-5'/>
|
|
<type-decl name='enum-E-underlying-type' size-in-bits='32' alignment-in-bits='32' id='type-id-6'/>
|
|
<type-decl name='long long int' size-in-bits='64' alignment-in-bits='64' id='type-id-7'/>
|
|
<namespace-decl name='ns0'>
|
|
<function-decl name='foo' mangled-name='_ZN3ns03fooEPcl' filepath='/home/dodji/git/libabigail/dwarf/tests/data/test-read-dwarf/test0.cc' line='8' column='1' visibility='default' binding='global' size-in-bits='64' alignment-in-bits='64'>
|
|
<parameter type-id='type-id-3'/>
|
|
<parameter type-id='type-id-1'/>
|
|
<return type-id='type-id-1'/>
|
|
</function-decl>
|
|
<function-decl name='bar' mangled-name='_ZN3ns03barEiz' filepath='/home/dodji/git/libabigail/dwarf/tests/data/test-read-dwarf/test0.cc' line='12' column='1' visibility='default' binding='global' size-in-bits='64' alignment-in-bits='64'>
|
|
<parameter type-id='type-id-4'/>
|
|
<parameter is-variadic='yes'/>
|
|
</function-decl>
|
|
<function-decl name='baz' mangled-name='_ZN3ns03bazERi' filepath='/home/dodji/git/libabigail/dwarf/tests/data/test-read-dwarf/test0.cc' line='16' column='1' visibility='default' binding='global' size-in-bits='64' alignment-in-bits='64'>
|
|
<parameter type-id='type-id-5'/>
|
|
</function-decl>
|
|
<enum-decl name='E' id='type-id-8'>
|
|
<underlying-type type-id='type-id-6'/>
|
|
<enumerator name='e0' value='0'/>
|
|
<enumerator name='e1' value='1'/>
|
|
</enum-decl>
|
|
<reference-type-def kind='lvalue' type-id='type-id-8' size-in-bits='64' alignment-in-bits='64' id='type-id-9'/>
|
|
<function-decl name='bar2' mangled-name='_ZN3ns04bar2ERNS_1EE' filepath='/home/dodji/git/libabigail/dwarf/tests/data/test-read-dwarf/test0.cc' line='22' column='1' visibility='default' binding='global' size-in-bits='64' alignment-in-bits='64'>
|
|
<parameter type-id='type-id-9'/>
|
|
</function-decl>
|
|
<typedef-decl name='long_long' type-id='type-id-7' filepath='/home/dodji/git/libabigail/dwarf/tests/data/test-read-dwarf/test0.cc' line='25' column='1' id='type-id-10'/>
|
|
<function-decl name='baz2' mangled-name='_ZN3ns04baz2ERi' filepath='/home/dodji/git/libabigail/dwarf/tests/data/test-read-dwarf/test0.cc' line='28' column='1' visibility='default' binding='global' size-in-bits='64' alignment-in-bits='64'>
|
|
<parameter type-id='type-id-5'/>
|
|
<return type-id='type-id-10'/>
|
|
</function-decl>
|
|
</namespace-decl>
|
|
<function-decl name='main' filepath='/home/dodji/git/libabigail/dwarf/tests/data/test-read-dwarf/test0.cc' line='45' column='1' visibility='default' binding='global' size-in-bits='64' alignment-in-bits='64'>
|
|
<return type-id='type-id-4'/>
|
|
</function-decl>
|
|
<var-decl name='global' type-id='type-id-4' visibility='default' filepath='/home/dodji/git/libabigail/dwarf/tests/data/test-read-dwarf/test0.cc' line='3' column='1'/>
|
|
</abi-instr>
|
|
</abi-corpus>
|