diff options
Diffstat (limited to 'foo.cpp')
-rw-r--r-- | foo.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -0,0 +1,24 @@ +class c0 +{ + public: + c0() : x(0) { } + c0(int e) : x(e) { } + protected: + int getVal(void) { + return x; + } + private: + int x; +}; + +class c1 : public c0 +{ + c0 a; +}; + +int main(int argc, char *argv[]) +{ + + return 0; +} + |