Changeset 600


Ignore:
Timestamp:
Aug 16, 2003, 1:45:44 AM (22 years ago)
Author:
bird
Message:

Final testcases?

Location:
trunk/testcase
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/testcase/570c.c

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r599 r600  
    5858int DoC(int a, int b, int c, int d)
    5959{
    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};
    6262
    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;
    6767
    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;
    7272
    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;
    7777
    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;
    8282
    8383
  • trunk/testcase/570main.cpp

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r599 r600  
     1#include <stdio.h>
    12typedef struct some_struct_pointer * PTYPE;
    23
     
    9091int main(void)
    9192{
    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};
    9495
    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;
    99100
    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;
    104105
    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;
    109110
    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;
    114115
    115116    /* extern functions */
     
    172173    DoC();
    173174
    174     /** @todo test typedefs and structure field. */
    175 
     175    printf("Successfully executed _System testcase (assumed).\n");
    176176    return 0;
    177177}
Note: See TracChangeset for help on using the changeset viewer.