mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-23 18:22:08 +00:00
8f9b8e76a0
* tests/test-read-dwarf.cc: New dwarf reading regression test. * tests/data/test-read-dwarf/test0: New test input. * data/test-read-dwarf/test0: Likewise. * data/test-read-dwarf/test0.abi: Likewise. * data/test-read-dwarf/test0.cc: Likewise. * data/test-read-dwarf/test1: Likewise. * data/test-read-dwarf/test1.abi: Likewise. * data/test-read-dwarf/test1.cc: Likewise. * tests/Makefile.am: Build the new tests/test-read-dwarf.cc file. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
53 lines
403 B
C++
53 lines
403 B
C++
struct b0
|
|
{
|
|
long long m0;
|
|
char m1;
|
|
};
|
|
|
|
struct b1
|
|
{
|
|
double m0;
|
|
char m1;
|
|
};
|
|
|
|
struct s0 : virtual b0, virtual b1
|
|
{
|
|
typedef int integer;
|
|
typedef unsigned char byte;
|
|
|
|
integer m0;
|
|
byte m1;
|
|
|
|
s0()
|
|
: m0(0),
|
|
m1(0)
|
|
{
|
|
}
|
|
|
|
~s0()
|
|
{
|
|
}
|
|
|
|
integer
|
|
mem_fun();
|
|
};
|
|
|
|
s0::integer
|
|
s0::mem_fun()
|
|
{
|
|
return m0 + m1;
|
|
}
|
|
|
|
void
|
|
foo(s0& s)
|
|
{
|
|
s.mem_fun();
|
|
}
|
|
|
|
int
|
|
main()
|
|
{
|
|
s0 s;
|
|
foo(s);
|
|
}
|