mirror of
git://sourceware.org/git/libabigail.git
synced 2025-01-12 12:29:30 +00:00
7a897fd723
* src/abg-comparison.cc (type_suppression::suppresses_diff): Do not crash on diff nodes that are not about struct/classes, when "type_kind = struct" has been specified. * tests/data/test-diff-suppr/test2-struct-suppr-{0,1}.suppr: New test input. * tests/data/test-diff-suppr/test2-struct-suppr-report-{0,1}.txt: Likewise. * tests/data/test-diff-suppr/test2-struct-suppr-v{0,1}.o: Likewise * tests/data/test-diff-suppr/test2-struct-suppr-v{1,0}.cc: Source code for binary test input. * tests/test-diff-suppr.cc (in_out_spec): Run this harness on the new test input above. * tests/Makefile.am: Add the new test input files to source distribution. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
18 lines
98 B
C++
18 lines
98 B
C++
struct S
|
|
{
|
|
int int_member;
|
|
};
|
|
|
|
class C
|
|
{
|
|
int int_member;
|
|
};
|
|
|
|
void
|
|
foo(S&)
|
|
{}
|
|
|
|
void
|
|
bar(C&)
|
|
{}
|