Ignore:
Timestamp:
Dec 15, 2003, 9:33:09 PM (22 years ago)
Author:
bird
Message:

As parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/testcase/570main.cpp

    • Property cvs2svn:cvs-rev changed from 1.6 to 1.7
    r905 r906  
    116116
    117117
     118/*
     119 * Parameters.
     120 */
     121int ParamArgs(
     122    void    (* _System pfn1Void)(int a, int b, int c, int d),
     123    void *  (* _System pfn1PVoid)(int a, int b, int c, int d),
     124    int     (* _System pfn1Int)(int a, int b, int c, int d),
     125    PTYPE   (* _System pfn1PType)(int a, int b, int c, int d),
     126    void    (_System * pfn2Void)(int a, int b, int c, int d),
     127    void *  (_System * pfn2PVoid)(int a, int b, int c, int d),
     128    int     (_System * pfn2Int)(int a, int b, int c, int d),
     129    PTYPE   (_System * pfn2PType)(int a, int b, int c, int d)
     130    )
     131{
     132    pfn1Void(1,2,3,4);
     133    pfn1PVoid(1,2,3,4);
     134    pfn1Int(1,2,3,4);
     135    pfn1PType(1,2,3,4);
     136
     137    pfn2Void(1,2,3,4);
     138    pfn2PVoid(1,2,3,4);
     139    pfn2Int(1,2,3,4);
     140    pfn2PType(1,2,3,4);
     141    return 0;
     142}
     143
    118144
    119145
     
    222248    PVar2PType(1,2,3,4);
    223249
     250    /* parameters */
     251    ParamArgs(Void, PVoid, Int, PType,
     252              Void, PVoid, Int, PType);
     253
     254
    224255    /* test C stuff */
    225256    DoC();
Note: See TracChangeset for help on using the changeset viewer.