Changeset 600
- Timestamp:
- Aug 16, 2003, 1:45:44 AM (22 years ago)
- Location:
- trunk/testcase
- Files:
-
- 4 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/testcase/570c.c
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r599 r600 58 58 int DoC(int a, int b, int c, int d) 59 59 { 60 VFT vft = {Void, PVoid, Int, PType,61 Void, PVoid, Int, PType};60 static VFT vft = {Void, PVoid, Int, PType, 61 Void, PVoid, Int, PType}; 62 62 63 Typedef1Void * pfnTypedef1Void = Void;64 Typedef1PVoid * pfnTypedef1PVoid = PVoid;65 Typedef1Int * pfnTypedef1Int = Int;66 Typedef1PType * pfnTypedef1PType = PType;63 static Typedef1Void * pfnTypedef1Void = Void; 64 static Typedef1PVoid * pfnTypedef1PVoid = PVoid; 65 static Typedef1Int * pfnTypedef1Int = Int; 66 static Typedef1PType * pfnTypedef1PType = PType; 67 67 68 Typedef2Void * pfnTypedef2Void = Void;69 Typedef2PVoid * pfnTypedef2PVoid = PVoid;70 Typedef2Int * pfnTypedef2Int = Int;71 Typedef2PType * pfnTypedef2PType = PType;68 static Typedef2Void * pfnTypedef2Void = Void; 69 static Typedef2PVoid * pfnTypedef2PVoid = PVoid; 70 static Typedef2Int * pfnTypedef2Int = Int; 71 static Typedef2PType * pfnTypedef2PType = PType; 72 72 73 PTypedef1Void pfnPTypedef1Void = Void;74 PTypedef1PVoid pfnPTypedef1PVoid = PVoid;75 PTypedef1Int pfnPTypedef1Int = Int;76 PTypedef1PType pfnPTypedef1PType = PType;73 static PTypedef1Void pfnPTypedef1Void = Void; 74 static PTypedef1PVoid pfnPTypedef1PVoid = PVoid; 75 static PTypedef1Int pfnPTypedef1Int = Int; 76 static PTypedef1PType pfnPTypedef1PType = PType; 77 77 78 PTypedef2Void pfnPTypedef2Void = Void;79 PTypedef2PVoid pfnPTypedef2PVoid = PVoid;80 PTypedef2Int pfnPTypedef2Int = Int;81 PTypedef2PType pfnPTypedef2PType = PType;78 static PTypedef2Void pfnPTypedef2Void = Void; 79 static PTypedef2PVoid pfnPTypedef2PVoid = PVoid; 80 static PTypedef2Int pfnPTypedef2Int = Int; 81 static PTypedef2PType pfnPTypedef2PType = PType; 82 82 83 83 -
Property cvs2svn:cvs-rev
changed from
-
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.