Changeset 314
- Timestamp:
- Jun 11, 2003, 12:46:10 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/testcase/456/simplecpp.cpp
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r313 r314 1 /* verify that one can step thru all the code and that the this and obj variables make sense. */ 1 2 #define USE_INLINE 2 3 class foo … … 20 21 #endif 21 22 } 23 24 virtual ~foo() 25 { 26 ch = 0; 27 } 28 29 virtual void set(int ch) 30 { 31 this->ch = ch; 32 } 33 22 34 #else 23 35 foo(); 36 virtual ~foo(); 37 virtual void set(int ch); 38 24 39 #endif 25 40 }; … … 29 44 { 30 45 ch = 'k'; 31 #if 132 46 int ch2 = 1; 33 47 ch += ch2; … … 41 55 } 42 56 #endif 43 #endif 57 } 58 59 foo::~foo() 60 { 61 ch = 0; 62 } 63 64 void foo::set(int ch) 65 { 66 this->ch = ch; 44 67 } 45 68 #endif … … 49 72 { 50 73 foo obj; 74 obj.set('k'); 51 75 return 0; 52 76 } -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.