mirror of
git://sourceware.org/git/libabigail.git
synced 2025-01-18 15:20:45 +00:00
55 lines
426 B
C++
55 lines
426 B
C++
|
class B0S0
|
||
|
{
|
||
|
int m0;
|
||
|
char m1;
|
||
|
unsigned m2;
|
||
|
|
||
|
public:
|
||
|
void
|
||
|
member0() const
|
||
|
{}
|
||
|
|
||
|
static void
|
||
|
static_member0();
|
||
|
};
|
||
|
|
||
|
void
|
||
|
B0S0::static_member0()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
class B0S1
|
||
|
{
|
||
|
int m0;
|
||
|
|
||
|
public:
|
||
|
B0S1()
|
||
|
{}
|
||
|
};
|
||
|
|
||
|
class S0 : public B0S0
|
||
|
{
|
||
|
protected:
|
||
|
int m0;
|
||
|
|
||
|
public:
|
||
|
void
|
||
|
member0() const
|
||
|
{}
|
||
|
|
||
|
int
|
||
|
get_member0() const
|
||
|
{return m0;}
|
||
|
};
|
||
|
|
||
|
class S1 : public B0S1
|
||
|
{
|
||
|
int m0;
|
||
|
void member0()
|
||
|
{}
|
||
|
};
|
||
|
|
||
|
void
|
||
|
foo(S0&, S1*)
|
||
|
{}
|