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/572main.cpp

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r905 r906  
    118118
    119119
     120/*
     121 * Parameters.
     122 */
     123int ParamArgs(
     124    void    (* _Optlink pfn1Void)(int a, int b, int c, int d),
     125    void *  (* _Optlink pfn1PVoid)(int a, int b, int c, int d),
     126    int     (* _Optlink pfn1Int)(int a, int b, int c, int d),
     127    PTYPE   (* _Optlink pfn1PType)(int a, int b, int c, int d),
     128    void    (_Optlink * pfn2Void)(int a, int b, int c, int d),
     129    void *  (_Optlink * pfn2PVoid)(int a, int b, int c, int d),
     130    int     (_Optlink * pfn2Int)(int a, int b, int c, int d),
     131    PTYPE   (_Optlink * pfn2PType)(int a, int b, int c, int d)
     132    )
     133{
     134    pfn1Void(1,2,3,4);
     135    pfn1PVoid(1,2,3,4);
     136    pfn1Int(1,2,3,4);
     137    pfn1PType(1,2,3,4);
     138
     139    pfn2Void(1,2,3,4);
     140    pfn2PVoid(1,2,3,4);
     141    pfn2Int(1,2,3,4);
     142    pfn2PType(1,2,3,4);
     143    return 0;
     144}
     145
     146
    120147extern "C" int DoC(void);
    121148int main(void)
     
    222249    PVar2PType(1,2,3,4);
    223250
     251    /* parameters */
     252    ParamArgs(Void, PVoid, Int, PType,
     253              Void, PVoid, Int, PType);
     254
    224255    /* test C stuff */
    225256    DoC();
Note: See TracChangeset for help on using the changeset viewer.