mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-24 10:42:21 +00:00
40029ae864
* doc/vizualization/layout: New. * doc/vizualization/layout/pdf/sa-A.pdf: New. * doc/vizualization/layout/pdf/sa-B.pdf: New. * doc/vizualization/layout/pdf/sa-C1.pdf: New. * doc/vizualization/layout/pdf/sa-C2.pdf: New. * doc/vizualization/layout/pdf/sa-C3.pdf: New. * doc/vizualization/layout/pdf/sa-D1.pdf: New. * doc/vizualization/layout/pdf/sa-D2.pdf: New. * doc/vizualization/layout/pdf/sa-D2v.pdf: New. * doc/vizualization/layout/pdf/sa-D3.pdf: New. * doc/vizualization/layout/pdf/sa-D3v.pdf: New. * doc/vizualization/layout/pdf/sa-D4v.pdf: New. * doc/vizualization/layout/pdf/sa-DD1.pdf: New. * doc/vizualization/layout/pdf/sa-DD2.pdf: New. * doc/vizualization/layout/pdf/sa-DD3.pdf: New. * doc/vizualization/layout/pdf/sa-DD4.pdf: New. * doc/vizualization/layout/pdf/sa-DD5.pdf: New. * doc/vizualization/layout/pdf/sa-base.pdf: New. * doc/vizualization/layout/png/sa-A.png: New. * doc/vizualization/layout/png/sa-B.png: New. * doc/vizualization/layout/png/sa-C1.png: New. * doc/vizualization/layout/png/sa-C2.png: New. * doc/vizualization/layout/png/sa-C3.png: New. * doc/vizualization/layout/png/sa-D1.png: New. * doc/vizualization/layout/png/sa-D2.png: New. * doc/vizualization/layout/png/sa-D2v.png: New. * doc/vizualization/layout/png/sa-D3.png: New. * doc/vizualization/layout/png/sa-D3v.png: New. * doc/vizualization/layout/png/sa-D4v.png: New. * doc/vizualization/layout/png/sa-DD1.png: New. * doc/vizualization/layout/png/sa-DD2.png: New. * doc/vizualization/layout/png/sa-DD3.png: New. * doc/vizualization/layout/png/sa-DD4.png: New. * doc/vizualization/layout/png/sa-DD5.png: New. * doc/vizualization/layout/png/sa-base.png: New. * doc/vizualization/layout/scripts/ (inkscape_export_svg_to_plain_svg.sh): New. (inkscape_export_svg_to_png_and_pdf.sh): New. * doc/vizualization/layout/sources/sa-A.cc: New. * doc/vizualization/layout/sources/sa-B.cc: New. * doc/vizualization/layout/sources/sa-C.cc: New. * doc/vizualization/layout/sources/sa-D.cc: New. * doc/vizualization/layout/sources/sa-DD.cc: New. * doc/vizualization/layout/sources/sa-base.cc: New. * doc/vizualization/layout/svg/sa-A.svg: New. * doc/vizualization/layout/svg/sa-B.svg: New. * doc/vizualization/layout/svg/sa-C1.svg: New. * doc/vizualization/layout/svg/sa-C2.svg: New. * doc/vizualization/layout/svg/sa-C3.svg: New. * doc/vizualization/layout/svg/sa-D1.svg: New. * doc/vizualization/layout/svg/sa-D2.svg: New. * doc/vizualization/layout/svg/sa-D2v.svg: New. * doc/vizualization/layout/svg/sa-D3.svg: New. * doc/vizualization/layout/svg/sa-D3v.svg: New. * doc/vizualization/layout/svg/sa-D4v.svg: New. * doc/vizualization/layout/svg/sa-DD1.svg: New. * doc/vizualization/layout/svg/sa-DD2.svg: New. * doc/vizualization/layout/svg/sa-DD3.svg: New. * doc/vizualization/layout/svg/sa-DD4.svg: New. * doc/vizualization/layout/svg/sa-DD5.svg: New. * doc/vizualization/layout/svg/sa-base.svg: New.
92 lines
1.1 KiB
C++
92 lines
1.1 KiB
C++
struct base
|
|
{
|
|
enum mode : short { in, out, top, bottom };
|
|
enum state { pass, fail, unknown };
|
|
typedef long int_type;
|
|
};
|
|
|
|
struct A : public base
|
|
{
|
|
int_type _M_i;
|
|
int_type _M_n;
|
|
mode _M_type;
|
|
};
|
|
|
|
struct C1 : public base
|
|
{
|
|
mode _M_type;
|
|
};
|
|
|
|
struct C2 : virtual public base
|
|
{
|
|
mode _M_type;
|
|
};
|
|
|
|
struct C3 : public base
|
|
{
|
|
mode _M_type;
|
|
|
|
virtual ~C3() { };
|
|
};
|
|
|
|
struct C4 : public base
|
|
{
|
|
mode _M_type;
|
|
|
|
virtual void foo() = 0;
|
|
};
|
|
|
|
struct D1 : public A
|
|
{
|
|
int_type _M_index;
|
|
int_type* _M_array;
|
|
bool _M_ok;
|
|
};
|
|
|
|
struct D2 : public C1
|
|
{
|
|
state _M_state;
|
|
int_type _M_index;
|
|
int_type* _M_array;
|
|
bool _M_ok;
|
|
};
|
|
|
|
struct D3 : public C1
|
|
{
|
|
int_type _M_index;
|
|
int_type* _M_array;
|
|
};
|
|
|
|
struct D2v : virtual public C2
|
|
{
|
|
state _M_state;
|
|
int_type _M_index;
|
|
int_type* _M_array;
|
|
bool _M_ok;
|
|
};
|
|
|
|
struct D3v : virtual public C3
|
|
{
|
|
int_type _M_index;
|
|
int_type* _M_array;
|
|
};
|
|
|
|
struct D4v : public C4
|
|
{
|
|
int_type _M_index;
|
|
int_type* _M_array;
|
|
|
|
void foo() { }
|
|
};
|
|
|
|
int main()
|
|
{
|
|
D1 obj1;
|
|
D2 obj2;
|
|
D3 obj3;
|
|
D2v obj2v;
|
|
D3v obj3v;
|
|
D4v obj4v;
|
|
return 0;
|
|
}
|