mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-25 11:12:14 +00:00
4e07799f42
* src/abg-comparison.cc (suppression_categorization_visitor::visit_end): If a diff node carries local changes, then, even if all of its children node have been suppressed, this diff node shall not be categorized as suppressed by way of propagation. (redundancy_marking_visitor::visit_end): If a diff node carries local changes, then, even if all of its children nodes are redundant, this diff node shall not be categorized as being redundant by way of propagation. * tests/data/test-diff-suppr/libtest4-local-suppr-v{0,1}.so: New test inputs. * tests/data/test-diff-suppr/test4-local-suppr-0.suppr: Likewise. * tests/data/test-diff-suppr/test4-local-suppr-report-{0,1}.txt: Likewise. * tests/data/test-diff-suppr/test4-local-suppr-v{0,1}.{c,h}: Source code of the new tests inputs. * tests/Makefile.am: Add the new test material to the source distribution. * tests/test-diff-suppr.cc (in_out_spec): Run this test harness over the new test input above. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
19 lines
439 B
C
19 lines
439 B
C
// To compile this, type:
|
|
// gcc -shared -g -Wall -o libtest4-local-suppr-v0.so test4-local-suppr-v0.c
|
|
|
|
#include "test4-local-suppr-v1.h"
|
|
|
|
struct private_data
|
|
{
|
|
int private_data0;
|
|
char private_data1; // This new member should not be flagged when
|
|
// using the suppression list.
|
|
};
|
|
|
|
void
|
|
foo(struct public_type* p __attribute__((unused)),
|
|
struct a_not_private_type* t __attribute__((unused)))
|
|
{
|
|
/* Do something with p */
|
|
}
|