mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-15 22:44:41 +00:00
ad0ec3fd20
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>
27 lines
195 B
C++
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()
|
|
{}
|