mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-29 21:32:08 +00:00
453ed93d01
* src/abg-dwarf-reader.cc (build_qualified_type): Handle DW_TAG_restrict_type by adding CV_RESTRICT. (build_ir_node_from_die): Call build_qualified_type for DW_TAG_restrict_type. * src/abg-reader.cc (build_qualified_type_decl): Handle "restrict" attribute by adding CV_RESTRICT. * src/abg-writer.cc (write_qualified_type_def): Output "restrict" attribute for CV_RESTRICT. * tests/data/test-read-dwarf/test4.c: New test file. * tests/data/test-read-dwarf/test4.so: Likewise. * tests/data/test-read-dwarf/test4.so.abi: Likewise. * tests/data/test-read-write/test24.xml: Likewise. * tests/test-read-dwarf.cc (in_out_specs): Add test4. * tests/test-read-write.cc (in_out_specs): Add test24.xml. Signed-off-by: Mark Wielaard <mjw@redhat.com>
16 lines
814 B
XML
16 lines
814 B
XML
<abi-instr version='1.0' path='data/test-read-write/test24.xml'>
|
|
<type-decl name='char' size-in-bits='8' id='type-id-1'/>
|
|
<pointer-type-def type-id='type-id-1' size-in-bits='64' id='type-id-2'/>
|
|
<qualified-type-def type-id='type-id-2' restrict='yes' id='type-id-3'/>
|
|
<qualified-type-def type-id='type-id-1' const='yes' id='type-id-4'/>
|
|
<pointer-type-def type-id='type-id-4' size-in-bits='64' id='type-id-5'/>
|
|
<qualified-type-def type-id='type-id-5' restrict='yes' id='type-id-6'/>
|
|
<type-decl name='unsigned int' size-in-bits='32' id='type-id-7'/>
|
|
<function-decl name='cpy' size-in-bits='64'>
|
|
<parameter type-id='type-id-3' name='s1'/>
|
|
<parameter type-id='type-id-6' name='s2'/>
|
|
<parameter type-id='type-id-7' name='n'/>
|
|
<return type-id='type-id-2'/>
|
|
</function-decl>
|
|
</abi-instr>
|