libabigail/tests/data/test-diff-suppr/test4-local-suppr-v1.c
Dodji Seketeli 4e07799f42 Properly propagate {REDUNDANT, SUPPRESSED}_CATEGORY wrt local changes
* 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>
2014-10-13 17:44:44 +02:00

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 */
}