Changeset 639 for trunk/testcase/570main.cpp
- Timestamp:
- Aug 19, 2003, 2:11:21 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/testcase/570main.cpp
-
Property cvs2svn:cvs-rev
changed from
1.5
to1.6
r638 r639 101 101 102 102 103 /* 104 * Variables 105 */ 106 void (* _System PVar1Void)(int a, int b, int c, int d); 107 void * (* _System PVar1PVoid)(int a, int b, int c, int d); 108 int (* _System PVar1Int)(int a, int b, int c, int d); 109 PTYPE (* _System PVar1PType)(int a, int b, int c, int d); 110 111 /* Alternate writing which should have the same effect I think... */ 112 void (_System * PVar2Void)(int a, int b, int c, int d); 113 void * (_System * PVar2PVoid)(int a, int b, int c, int d); 114 int (_System * PVar2Int)(int a, int b, int c, int d); 115 PTYPE (_System * PVar2PType)(int a, int b, int c, int d); 116 117 118 119 103 120 extern "C" int DoC(void); 104 121 int main(void) … … 127 144 static PTypedef2PType pfnPTypedef2PType = PType; 128 145 146 PVar1Void = Void; 147 PVar1PVoid = PVoid; 148 PVar1Int = Int; 149 PVar1PType = PType; 150 151 PVar2Void = Void; 152 PVar2PVoid = PVoid; 153 PVar2Int = Int; 154 PVar2PType = PType; 155 156 129 157 /* extern functions */ 130 158 ExternCVoid(1,2,3,4); … … 183 211 vft.PStructMember2PType(1,2,3,4); 184 212 213 /* variables */ 214 PVar1Void(1,2,3,4); 215 PVar1PVoid(1,2,3,4); 216 PVar1Int(1,2,3,4); 217 PVar1PType(1,2,3,4); 218 219 PVar2Void(1,2,3,4); 220 PVar2PVoid(1,2,3,4); 221 PVar2Int(1,2,3,4); 222 PVar2PType(1,2,3,4); 223 185 224 /* test C stuff */ 186 225 DoC(); -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.