2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-23 17:52:17 +00:00
Files
python/pyste/tests/inherit2.h
Bruno da Silva de Oliveira 73e2ab5125 - Added a new test exercising the new automatic inheritation
[SVN r18815]
2003-06-17 01:56:45 +00:00

28 lines
256 B
C++

namespace inherit2 {
struct A
{
int x;
int getx() { return x; }
};
struct B : A
{
int y;
int gety() { return y; }
};
struct C : B
{
int z;
int getz() { return z; }
};
struct D : C
{
int w;
int getw() { return w; }
};
}