libabigail/tests/data/test-read-write
Dodji Seketeli ee2d8c9196 Fix IR node comparison bugs
* include/abg-ir.h (type_shared_ptr_equal::operator()): Fix thinko
	in checking for the boolean value of the pointers to types.
	* src/abg-ir.cc (type_decl::operator==(const decl_base&)): Do not
	forget to compare the decl_base part of the type too.
	(type_decl::operator==(const type_base&)): To ease maintenance,
	re-use the equality operator that takes a decl_base.
	(scope_type_decl::operator==(const type_base&)): Likewise.
	(qualified_type_def::operator==(const type_base&)): Likewise.
	(compare_function_types): New sub-routine to compare function
	types.  It fixes an infinite recursion when comparing two methods
	of the same class.
	(function_type::operator==(const type_base&)): Use the new
	compare_function_types function.
	(class_decl::operator==(const decl_base&)): Fix a thinko in the
	first test of the function.  Use a dedicated scope for each class
	section comparison; that way, there won't be any chance to misuse
	the variables pertaining to a different section.  Fix the member
	function sections; we were mistakenly using the variables for the
	*data* section there.
	(class_decl::operator==(const type_base&)): Re-use the operator
	that takes a decl_base.
	(class_decl::operator==(const class_decl&)): Don't remove
	const-ness during the static cast.
	(class_decl::member_function::operator==(const member_function&)):
	Do not remove the reference from the static cast.
	(class_decl::member_class_template::operator==(const
	member_base&)): Likewise.
	(type_tparameter::operator==(const template_parameter&)):
	Likewise.
	(template_tparameter::operator==(const template_parameter&)):
	Likewise.
	(function_tdecl::operator==(const template_decl&)): Likewise.
	(class_tdecl::operator==(const template_decl&)): Likewise.
	(class_tdecl::operator==(const class_tdecl&)): Likewise.
	* tests/data/test-read-write/test12.xml: Update this because the
	test now correctly considers two type template parameters at the
	same index as being equivalent.
	* tests/data/test-read-write/test13.xml: Likewise.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
2013-11-19 11:25:09 +01:00
..
test0.xml
test1.xml
test2.xml
test3.xml
test4.xml
test5.xml
test6.xml Update enum decl representation as per the schema 2013-07-23 23:13:49 +02:00
test7.xml Support typedef declarations 2013-03-30 21:59:19 +01:00
test8.xml Support var decl & mangled_name attributes 2013-04-02 16:51:59 +02:00
test9.xml Support function_type and adapt a function_decl to use it 2013-07-23 23:13:53 +02:00
test10.xml Support method type/decl, variadic functions, class declarations-only 2013-07-23 23:13:53 +02:00
test11.xml Support function_type and adapt a function_decl to use it 2013-07-23 23:13:53 +02:00
test12.xml Fix IR node comparison bugs 2013-11-19 11:25:09 +01:00
test13.xml Fix IR node comparison bugs 2013-11-19 11:25:09 +01:00
test14.xml Support function_type and adapt a function_decl to use it 2013-07-23 23:13:53 +02:00
test15.xml Initial support of class templates 2013-07-23 23:13:51 +02:00
test16.xml Initial support for member class templates 2013-07-23 23:13:51 +02:00
test17.xml Support method type/decl, variadic functions, class declarations-only 2013-07-23 23:13:53 +02:00
test18.xml Fix handling of forward decl of classes 2013-07-23 23:13:53 +02:00
test19.xml Iron out support for simple base classes. 2013-07-23 23:13:53 +02:00
test20.xml Support offsets and virtual attribute in base class specifiers 2013-07-23 23:13:53 +02:00