2014-03-21 14:15:02 +00:00
|
|
|
class B0S0
|
|
|
|
{
|
|
|
|
int m0;
|
|
|
|
char m1;
|
|
|
|
|
|
|
|
public:
|
|
|
|
void
|
2014-04-21 17:33:54 +00:00
|
|
|
member0() const;
|
2014-03-21 14:15:02 +00:00
|
|
|
|
|
|
|
static void
|
|
|
|
static_member0();
|
|
|
|
};
|
|
|
|
|
2014-04-21 17:33:54 +00:00
|
|
|
void
|
|
|
|
B0S0::member0() const
|
|
|
|
{}
|
|
|
|
|
2014-03-21 14:15:02 +00:00
|
|
|
void
|
|
|
|
B0S0::static_member0()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
class B0S1
|
|
|
|
{
|
|
|
|
int m0;
|
|
|
|
|
|
|
|
public:
|
|
|
|
B0S1()
|
|
|
|
{}
|
|
|
|
};
|
|
|
|
|
|
|
|
class S0 : public B0S0
|
|
|
|
{
|
|
|
|
int m0;
|
2014-04-21 17:33:54 +00:00
|
|
|
void member0() const;
|
2014-03-21 14:15:02 +00:00
|
|
|
};
|
|
|
|
|
2014-04-21 17:33:54 +00:00
|
|
|
void
|
|
|
|
S0::member0() const
|
|
|
|
{}
|
|
|
|
|
2014-03-21 14:15:02 +00:00
|
|
|
class S1 : public B0S1
|
|
|
|
{
|
|
|
|
int m0;
|
|
|
|
void member0()
|
|
|
|
{}
|
|
|
|
};
|
|
|
|
|
|
|
|
void
|
|
|
|
foo(S0&, S1*)
|
|
|
|
{}
|