libabigail/tests
Dodji Seketeli 688d18dc71 Bug 21228 - Handle cloning union member functions
It turns out we allow member function cloning only for functions that
are members of classes, not for functions that are member of unions.

This patch fixes that by turning the method
class_decl::add_member_function into the
class_or_union::add_member_function.  Note that there was already an
overload of class_or_union::add_member_function; now, all the member
functions add_member_function are members of the class_or_union type.

The patch then modifies function_decl::clone to make that code avoid
assuming that only member functions of classes can be cloned.

	* include/abg-ir.h (class_or_union::add_member_function): Move the
	class_decl::add_member_function overload declaration into the
	class class_or_union class.
	(class class_decl): Make the class class_or_union be a friend of
	class_decl.
	* src/abg-ir.cc (class_decl::add_member_function): Transform the
	definition of this overload into ...
	(class_or_union::add_member_function): ... this one.  Make sure
	that when setting the virtual-ness attributes of the member
	function, we are effectively looking at the a function that is a
	member of a class.
	(function_decl::clone): Do not assert that a member function is
	necessarily a member of a class_decl.  It can also a member of a
	union_decl!.  So, rather, assert that the scope of the member
	function is of type class_or_union.
	* tests/data/test-diff-pkg/tbb-2017-8.20161128.fc26.x86_64.rpm:
	New test input RPM.
	* tests/data/test-diff-pkg/tbb-2017-9.20170118.fc27.x86_64.rpm:
	* tests/data/test-diff-pkg/tbb-debuginfo-2017-8.20161128.fc26.x86_64.rpm:
	Likewise.
	* tests/data/test-diff-pkg/tbb-debuginfo-2017-9.20170118.fc27.x86_64.rpm:
	Likewise.
	* tests/data/test-diff-pkg/tbb-2017-8.20161128.fc26.x86_64--tbb-2017-9.20170118.fc27.x86_64.txt:
	New reference test output.
	* tests/data/Makefile.am: Add the new test input RPMs to the
	source distribution.
	* tests/test-diff-pkg.cc (in_out_specs): Take the new input tests
	above into account.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
2017-03-07 11:50:56 +01:00
..
data Bug 21228 - Handle cloning union member functions 2017-03-07 11:50:56 +01:00
Makefile.am Add a "make check-valgrind-helgrind-recursive" target 2017-02-27 10:01:06 +01:00
mockfedabipkgdiff.in fedabipkgdiff refuses to compare packages with the same release number 2017-02-15 16:06:32 +01:00
print-diff-tree.cc
runtestcanonicalizetypes.sh.in Bug 20180 - Support system-wide suppression specifications 2016-05-30 18:39:49 +02:00
runtestdefaultsupprs.py.in Fix python interpreter path for el6 2016-06-28 09:12:40 +02:00
runtestfedabipkgdiff.py.in Display the command that failed the runtestfedabipkgdiff.py test 2017-02-28 16:38:48 +01:00
test-abicompat.cc Implement a [suppress_file] suppression directive 2016-05-08 12:39:26 +02:00
test-abidiff-exit.cc Bug 20180 - Support system-wide suppression specifications 2016-05-30 18:39:49 +02:00
test-abidiff.cc Update copyright notice for abg-fwd.h, abg-ir.h and test-abidiff.cc 2017-01-16 15:36:20 +01:00
test-alt-dwarf-file.cc
test-annotate.cc Fix virtual members sorting to unbreak the build on EL6 2017-03-03 12:56:44 +01:00
test-core-diff.cc
test-diff2.cc
test-diff-dwarf-abixml.cc Bug 20180 - Support system-wide suppression specifications 2016-05-30 18:39:49 +02:00
test-diff-dwarf.cc Bug 20476 - Compare virtual member functions when comparing classes 2017-02-14 12:49:47 +01:00
test-diff-filter.cc Bug 18754 - Add the "--no-added-syms" option to abidiff 2017-01-05 13:44:25 +01:00
test-diff-pkg.cc Bug 21228 - Handle cloning union member functions 2017-03-07 11:50:56 +01:00
test-diff-suppr.cc Bug 21058 - abipkgdiff wrongly drops non-public types 2017-01-18 10:14:02 +01:00
test-dot.cc
test-ir-walker.cc
test-lookup-syms.cc
test-read-dwarf.cc Move test-read-dwarf.cc to abigail::workers 2017-03-01 14:34:58 +01:00
test-read-write.cc Drop suppressed ABI artifacts from the IR 2016-09-21 18:35:08 +02:00
test-svg.cc
test-types-stability.cc
test-utils.cc
test-utils.h
test-valgrind-suppressions.supp Make Helgrind suppressions less specific to libgcc_s version 2017-03-02 12:49:52 +01:00
test-write-read-archive.cc
update-test-output.py Rename tests/update-test-read-dwarf-output.py 2016-12-02 12:59:32 +01:00