libabigail/tests/data/test-read-write
Ondrej Oprala 055a789abe Support C and C++ array type.
* include/abg-comparison.h (array_diff): Declare new class.
	(array_diff_sptr): Shared pointer to type array_diff.
	(compute_diff): Overload the function to take type
	array_diff_sptr as the first two arguments.
	* include/abg-fwd.h (array_type_def): Declare new class.
	(subrange_type): Likewise.
	(is_array_def): Declare new function.
	* include/abg-ir.h (array_type_def_sptr): Shared pointer
	to type array_type_def.
	(array_type_def): Declare new class.
	(ir_node_visitor::visit): Declare a new virtual function
	taking a pointer to type array_type_def as an argument.
	* src/abg-comparison.cc (compute_diff_for_types): Add
	try_to_diff for two instances of type array_type_def.
	(array_diff::priv): declare struct for holding private members
	of type array_diff.
	(array_diff::array_diff): Define constructor.
	(array_diff::{first,second}_array):Define new
	member functions.
	(array_diff::element_type_diff): Likewise.
	(array_diff::{length,report,traverse}): Likewise.
	(compute_diff): Define function overloaded in
	include/abg-comparison.h.
	* src/abg-dwarf-reader.cc (build_array_type): Define new
	function. Handle DW_TAG_array_type and DW_TAG_subrange type.
	(build_ir_node_from_die): Amend case DW_TAG_array_type with
	a call to build_array_type.
	* src/abg-hash.cc (array_type_def::hash): Declare new struct.
	(type_base::dynamic_hash::operator()): Attempt to dynamic_cast
	the argument to type array_type_def as well.
	(array_type_def::hash): Declare new struct.
	* src/abg-ir.cc (array_type_def::array_type_def): Define
	constructors.
	(array_type_def::priv): declare struct for holding private members
	of type array_type_def.
	(array_type_def::operator==(const decl_base&):
	Define new operator.
	(array_type_def::operator==(const type_base&):
	Likewise.
	(array_type_def::append_subrange{,s}): Define
	new functions.
	(array_type_def::{set,get}_size_in_bits): Likewise.
	(array_type_def::get_dimension_count): Likewise.
	(array_type_def::get_qualified_name): Likewise.
	(array_type_def::get_pretty_representation): Likewise.
	(array_type_def::get_subrange_representation): Likewise.
	(array_type_def::traverse): Likewise.
	(array_type_def::get_{element_type,location,subranges}): Likewise.
	(array_type_def::is_infinite): Likewise.
	(array_type_def::~array_type_def): Define destructor.
	(ir_node_visitor::visit): Define function, taking
	pointer to array_type_def as an argument.
	* src/abg-reader.cc (map_id_and_node): Check if node
	is an array.
	(is_array_def): Check if object is an array.
	(handle_element_node): Handle array_type_def as well.
	(build_subrange_type): Define new function.
	(build_array_type_def): Likewise.
	(build_type): Build type array_type_def as well.
	(build_type_composition): Likewise.
	(handle_array_type_def): Define new function.
	* src/abg-writer.cc: (write_decl): Output arrays
	as well.
	(write_member_type): Likewise.
	(write_type_composition): Likewise.
	(write_array_type_def): Define new function.
	* tests/data/test-diff-dwarf/test{10,11}-v{0,1}.{cc,o}: New test source
	files
	* tests/data/test-diff-dwarf/test{10,11}-report.txt: Likewise.
	* tests/data/test-diff-dwarf/test10-report.txt: New test input.
	* tests/data/test-read-dwarf/test7.cc: New test source
	file.
	* tests/data/test-read-dwarf/test7.so: New input binary
	to read.
	* tests/data/test-read-dwarf/test7.so.abi: New reference
	test to compare against.
	* tests/data/test-read-write/test25.xml: New test source
	file.
	* tests/test-diff-dwarf.cc: Adjust to launch the new test.
	* tests/test-read-dwarf.cc: Likewise.
	* tests/test-read-write.cc: Likewise.
	* test/Makefile.am: Add the new test inputs to the source
	distribution.

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
2014-08-22 13:07:41 +02:00
..
test0.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test1.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test2.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test3.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test4.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test5.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test6.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test7.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test8.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test9.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test10.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test11.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test12.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test13.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test14.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test15.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test16.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test17.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test18.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test19.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test20.xml Get rid of class_decl::data_member 2014-03-19 21:18:38 +01:00
test21.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test22.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test23.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test24.xml Handle C99 restrict qualifier and DWARFv3 DW_TAG_restrict_type. 2014-06-23 15:55:37 +02:00
test25.xml Support C and C++ array type. 2014-08-22 13:07:41 +02:00