libabigail/tests/data
Dodji Seketeli 09de4435ce Bug 19092 - abidw aborts on types that violate the ODR
It appears that two different types from two different translation
units might have the same name in a DSO, like in the example of this
bug.  This violates the One Definition Rule, which we rely on to go
fast, and more importantly, it introduces type canonicalization errors.

This patch recognizes more of these ODR violation cases by looking at
the size of the types.  That is, if two types (from the same DSO) with
the same name have different sizes, then they are different.

	* src/abg-ir.cc (type_base::get_canonical_type_for): Look at the
	size of types with the same name which could be considered
	ODR-equal, to spot possible violations that would induce a type
	canonicalization error.
	* tests/data/test-read-dwarf/test21-pr19092.so: New test input
	binary.
	* tests/data/test-read-dwarf/test21-pr19092.so.abi: New reference
	abixml for the binary above.
	* tests/data/Makefile.am: Add the new test input above to source
	distribution.
	* tests/data/test-read-dwarf/test9-pr18818-clang.so.abi: Adjust.
	* tests/data/test-read-dwarf/test12-pr18844.so.abi: Likewise.
	* tests/data/test-read-dwarf/test20-pr19025-libvtkParallelCore-6.1.so.abi:
	Likewise.
	* tests/test-read-dwarf.cc (int_out_specs): Add the two test input
	above.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
2015-10-15 16:22:14 +02:00
..
test-abicompat Make the name of the removed variable section be consistent 2015-07-24 14:06:29 +02:00
test-abidiff Fix "is-anonymous" abixml property impact on some tests 2015-10-15 13:50:48 +02:00
test-alt-dwarf-file Make the alt dwarf debug file *not* be a symlink 2014-11-19 16:50:48 +01:00
test-core-diff
test-diff-dwarf Do not compare access specs for member types & functions 2015-10-15 13:50:48 +02:00
test-diff-filter Do not compare access specs for member types & functions 2015-10-15 13:50:48 +02:00
test-diff-pkg Bug 19082 - Recognize suppression spec files 2015-10-13 09:19:47 +02:00
test-diff-suppr Support source_location_not_in and source_location_not_regexp suppressions 2015-09-16 20:54:40 +02:00
test-lookup-syms
test-read-dwarf Bug 19092 - abidw aborts on types that violate the ODR 2015-10-15 16:22:14 +02:00
test-read-write Bug 17340 - Support pointers and references to functions 2015-09-30 21:20:42 +02:00
test-write-read-archive
Makefile.am Bug 19092 - abidw aborts on types that violate the ODR 2015-10-15 16:22:14 +02:00