libabigail/tests/data/test-diff-dwarf/test28-vtable-changes-v0.cc
Dodji Seketeli ad0ec3fd20 Report vtable changes in top-level function change reports
Up to know we were not reporting vtable changes on top-level function
change reports.  This patch adds that feature.

	* src/abg-comparison.cc (function_decl_diff::report): Report about
	virtual-ness and vtable offset changes.
	* tests/data/test-diff-dwarf/test28-vtable-changes-report-0.txt:
	New test input file.
	* tests/data/test-diff-dwarf/test28-vtable-changes-v{0,1}.o: New
	test input binaries.
	* tests/data/test-diff-dwarf/test28-vtable-changes-v{0,1}.cc:
	Source code of the input binaries above.
	* tests/data/Makefile.am: Add the new test input above to source
	distribution.
	* tests/test-diff-dwarf.cc (in_out_specs): Add the new test input
	above to the list of input this test harness has to run over.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
2015-06-04 13:30:16 +02:00

27 lines
195 B
C++

// Compile with:
// g++ -g -Wall -c test28-vtable-changes-v0.cc
struct S
{
void
bar();
virtual void
baz();
virtual void
foo();
};
void
S::bar()
{}
void
baz()
{}
void
foo()
{}