Changeset 600 for trunk/testcase/570main.cpp
- Timestamp:
- Aug 16, 2003, 1:45:44 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/testcase/570main.cpp
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r599 r600 1 #include <stdio.h> 1 2 typedef struct some_struct_pointer * PTYPE; 2 3 … … 90 91 int main(void) 91 92 { 92 VFT vft = {Void, PVoid, Int, PType,93 Void, PVoid, Int, PType};93 static VFT vft = {Void, PVoid, Int, PType, 94 Void, PVoid, Int, PType}; 94 95 95 Typedef1Void * pfnTypedef1Void = Void;96 Typedef1PVoid * pfnTypedef1PVoid = PVoid;97 Typedef1Int * pfnTypedef1Int = Int;98 Typedef1PType * pfnTypedef1PType = PType;96 static Typedef1Void * pfnTypedef1Void = Void; 97 static Typedef1PVoid * pfnTypedef1PVoid = PVoid; 98 static Typedef1Int * pfnTypedef1Int = Int; 99 static Typedef1PType * pfnTypedef1PType = PType; 99 100 100 Typedef2Void * pfnTypedef2Void = Void;101 Typedef2PVoid * pfnTypedef2PVoid = PVoid;102 Typedef2Int * pfnTypedef2Int = Int;103 Typedef2PType * pfnTypedef2PType = PType;101 static Typedef2Void * pfnTypedef2Void = Void; 102 static Typedef2PVoid * pfnTypedef2PVoid = PVoid; 103 static Typedef2Int * pfnTypedef2Int = Int; 104 static Typedef2PType * pfnTypedef2PType = PType; 104 105 105 PTypedef1Void pfnPTypedef1Void = Void;106 PTypedef1PVoid pfnPTypedef1PVoid = PVoid;107 PTypedef1Int pfnPTypedef1Int = Int;108 PTypedef1PType pfnPTypedef1PType = PType;106 static PTypedef1Void pfnPTypedef1Void = Void; 107 static PTypedef1PVoid pfnPTypedef1PVoid = PVoid; 108 static PTypedef1Int pfnPTypedef1Int = Int; 109 static PTypedef1PType pfnPTypedef1PType = PType; 109 110 110 PTypedef2Void pfnPTypedef2Void = Void;111 PTypedef2PVoid pfnPTypedef2PVoid = PVoid;112 PTypedef2Int pfnPTypedef2Int = Int;113 PTypedef2PType pfnPTypedef2PType = PType;111 static PTypedef2Void pfnPTypedef2Void = Void; 112 static PTypedef2PVoid pfnPTypedef2PVoid = PVoid; 113 static PTypedef2Int pfnPTypedef2Int = Int; 114 static PTypedef2PType pfnPTypedef2PType = PType; 114 115 115 116 /* extern functions */ … … 172 173 DoC(); 173 174 174 /** @todo test typedefs and structure field. */ 175 175 printf("Successfully executed _System testcase (assumed).\n"); 176 176 return 0; 177 177 } -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.