source: trunk/testcase/456/inheritance_simple.cpp@ 311

Last change on this file since 311 was 311, checked in by bird, 22 years ago

initial testcase.

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 324 bytes
Line 
1/* Check that obj is visible.
2 * The virtual function table of the base class used to cause trouble.
3 */
4
5class ParentClass
6{
7public:
8 virtual int get()
9 {
10 return 1;
11 }
12};
13
14class ChildClass : public ParentClass
15{
16public:
17 ChildClass()
18 {
19 }
20};
21
22int main(void)
23{
24 ChildClass obj;
25 return 0;
26}
Note: See TracBrowser for help on using the repository browser.