source:
trunk/testcase/456/inheritance_simple.cpp@
725
| Last change on this file since 725 was 311, checked in by , 23 years ago | |
|---|---|
|
|
| File size: 324 bytes | |
| Rev | Line | |
|---|---|---|
| [311] | 1 | /* Check that obj is visible. |
| 2 | * The virtual function table of the base class used to cause trouble. | |
| 3 | */ | |
| 4 | ||
| 5 | class ParentClass | |
| 6 | { | |
| 7 | public: | |
| 8 | virtual int get() | |
| 9 | { | |
| 10 | return 1; | |
| 11 | } | |
| 12 | }; | |
| 13 | ||
| 14 | class ChildClass : public ParentClass | |
| 15 | { | |
| 16 | public: | |
| 17 | ChildClass() | |
| 18 | { | |
| 19 | } | |
| 20 | }; | |
| 21 | ||
| 22 | int main(void) | |
