libabigail/tests/data/test-read-write/test24.xml
Mark Wielaard 453ed93d01 Handle C99 restrict qualifier and DWARFv3 DW_TAG_restrict_type.
* 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>
2014-06-23 15:55:37 +02:00

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>