mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-30 05:42:05 +00:00
61b13cc9db
* src/abg-reader.cc (build_function_parameter): Support reading the "is-variadic" attribute. * src/abg-writer.cc (write_function_decl): Support writing the "is-variadic" attribute. * tests/data/test-read-write/test22.xml: New test input. * tests/test-read-write.cc (in_out_specs): Add the new test to the list of files to read and write back. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
20 lines
1.5 KiB
XML
20 lines
1.5 KiB
XML
<abi-instr version='1.0'>
|
|
<type-decl name='long 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'/>
|
|
<type-decl name='long int' size-in-bits='64' alignment-in-bits='64' id='type-id-3'/>
|
|
<function-decl name='foo' mangled-name='_Z3foocl' filepath='/home/dodji/test-bidw/test-v0.cc' line='5' column='1' visibility='default' binding='global' size-in-bits='64' alignment-in-bits='64'>
|
|
<parameter type-id='type-id-2' name='c' filepath='/home/dodji/test-bidw/test-v0.cc' line='5' column='1'/>
|
|
<parameter type-id='type-id-3' name='l' filepath='/home/dodji/test-bidw/test-v0.cc' line='5' column='1'/>
|
|
<return type-id='type-id-1'/>
|
|
</function-decl>
|
|
<function-decl name='bar' mangled-name='_Z3bariz' filepath='/home/dodji/test-bidw/test-v0.cc' line='9' column='1' visibility='default' binding='global' size-in-bits='64' alignment-in-bits='64'>
|
|
<parameter type-id='type-id-3' name='c' filepath='/home/dodji/test-bidw/test-v0.cc' line='9' column='1'/>
|
|
<parameter is-variadic='yes'/>
|
|
</function-decl>
|
|
<type-decl name='int' size-in-bits='32' alignment-in-bits='32' id='type-id-4'/>
|
|
<function-decl name='main' filepath='/home/dodji/test-bidw/test-v0.cc' line='17' 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/test-bidw/test-v0.cc' line='2' column='1'/>
|
|
</abi-instr>
|