| Last change
 on this file since 1240 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 |  | 
|---|
| 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) | 
|---|
| 23 | { | 
|---|
| 24 | ChildClass obj; | 
|---|
| 25 | return 0; | 
|---|
| 26 | } | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.