mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-14 22:14:35 +00:00
b4f1a796bd
Following on from giving some test file more descriptive names, this patch actually documents in brief the purpose of these recently added tests. It also improves the coverage of the test-leaf-cxx-members test to include deletion and insertion report text as well. * tests/data/test-abidiff-exit/test-leaf-cxx-members-v1.cc: Comment test. Reorder members of ops to get better coverage. * tests/data/test-abidiff-exit/test-leaf-fun-type-v1.cc: Comment test. * tests/data/test-abidiff-exit/test-leaf-more-v1.cc: Ditto. * tests/data/test-abidiff-exit/test-leaf-peeling-v1.cc: Comment test. Update comment on ops2. * tests/data/test-abidiff-exit/test-leaf-redundant-v1.c: Comment test. * tests/data/test-abidiff-exit/test-leaf-stats-v1.cc: Ditto. * tests/data/test-abidiff-exit/test-leaf-cxx-members-report.txt: Update locations. Update report to reflect deletion, insertion and changed members (was previously changed only).: * tests/data/test-abidiff-exit/test-leaf-peeling-report.txt: Update locations. * tests/data/test-abidiff-exit/test-leaf-redundant-report.txt: Ditto.: * tests/data/test-abidiff-exit/test-leaf-cxx-members-v0.cc: Added one line comment referring to -v1 source file. * tests/data/test-abidiff-exit/test-leaf-fun-type-v0.cc: Ditto. * tests/data/test-abidiff-exit/test-leaf-more-v0.cc: Ditto. * tests/data/test-abidiff-exit/test-leaf-peeling-v0.cc: Ditto. * tests/data/test-abidiff-exit/test-leaf-redundant-v0.c: Ditto. * tests/data/test-abidiff-exit/test-leaf-stats-v0.cc: Ditto. * tests/data/test-abidiff-exit/test-leaf-cxx-members-v0.o: Recompiled. * tests/data/test-abidiff-exit/test-leaf-cxx-members-v1.o: Ditto. * tests/data/test-abidiff-exit/test-leaf-fun-type-v0.o: Ditto. * tests/data/test-abidiff-exit/test-leaf-fun-type-v1.o: Ditto. * tests/data/test-abidiff-exit/test-leaf-more-v0.o: Ditto. * tests/data/test-abidiff-exit/test-leaf-more-v1.o: Ditto. * tests/data/test-abidiff-exit/test-leaf-peeling-v0.o: Ditto. * tests/data/test-abidiff-exit/test-leaf-peeling-v1.o: Ditto. * tests/data/test-abidiff-exit/test-leaf-redundant-v0.o: Ditto. * tests/data/test-abidiff-exit/test-leaf-redundant-v1.o: Ditto. * tests/data/test-abidiff-exit/test-leaf-stats-v0.o: Ditto. * tests/data/test-abidiff-exit/test-leaf-stats-v1.o: Ditto. Signed-off-by: Giuliano Procida <gprocida@google.com>
39 lines
930 B
C++
39 lines
930 B
C++
// Ensure that different pointer / reference types are considered genuinely
|
|
// different in --leaf-changes-only mode.
|
|
struct foo {
|
|
long z; // was int
|
|
};
|
|
|
|
struct ops1 {
|
|
int ** x; // was *
|
|
};
|
|
|
|
struct ops2 {
|
|
// A change to foo's size (impacting y's size) is currently considered local
|
|
// here. Arguably this should be considered non-local as the change to foo is
|
|
// also being reported independently. If this happens, the test case will
|
|
// need to be updated (to remove the reporting of the ops2 diff).
|
|
foo y[10];
|
|
};
|
|
|
|
struct ops3 {
|
|
void (*spong)(int && wibble); // was &
|
|
};
|
|
|
|
struct ops4 {
|
|
int & x; // was *
|
|
};
|
|
|
|
struct ops5 {
|
|
int *** x; // was *
|
|
};
|
|
|
|
// TODO: This *should* be considered a local change, but currently is not.
|
|
int var6[5][2]; // was [2][5]
|
|
|
|
void register_ops1(ops1*) { }
|
|
void register_ops2(ops2*) { }
|
|
void register_ops3(ops3*) { }
|
|
void register_ops4(ops4*) { }
|
|
void register_ops5(ops5*) { }
|