Changeset 639 for trunk/testcase/572c.c


Ignore:
Timestamp:
Aug 19, 2003, 2:11:21 AM (22 years ago)
Author:
bird
Message:

Extended testcase with variable declaration.

File:
1 edited

Legend:

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

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r638 r639  
    6969
    7070
     71/*
     72 * Variables
     73 */
     74void    (* _Optlink PVar1Void)(int a, int b, int c, int d);
     75void *  (* _Optlink PVar1PVoid)(int a, int b, int c, int d);
     76int     (* _Optlink PVar1Int)(int a, int b, int c, int d);
     77PTYPE   (* _Optlink PVar1PType)(int a, int b, int c, int d);
     78
     79/* Alternate writing which should have the same effect I think... */
     80void    (_Optlink * PVar2Void)(int a, int b, int c, int d);
     81void *  (_Optlink * PVar2PVoid)(int a, int b, int c, int d);
     82int     (_Optlink * PVar2Int)(int a, int b, int c, int d);
     83PTYPE   (_Optlink * PVar2PType)(int a, int b, int c, int d);
     84
     85
    7186int DoC(int a, int b, int c, int d)
    7287{
     
    93108    static PTypedef2Int         pfnPTypedef2Int   = CInt;
    94109    static PTypedef2PType       pfnPTypedef2PType = CPType;
     110
     111    PVar1Void   = CVoid;
     112    PVar1PVoid  = CPVoid;
     113    PVar1Int    = CInt;
     114    PVar1PType  = CPType;
     115
     116    PVar2Void   = CVoid;
     117    PVar2PVoid  = CPVoid;
     118    PVar2Int    = CInt;
     119    PVar2PType  = CPType;
    95120
    96121
     
    134159    vft.PStructMember2PType(1,2,3,4);
    135160
     161    /* variables */
     162    PVar1Void(1,2,3,4);
     163    PVar1PVoid(1,2,3,4);
     164    PVar1Int(1,2,3,4);
     165    PVar1PType(1,2,3,4);
     166
     167    PVar2Void(1,2,3,4);
     168    PVar2PVoid(1,2,3,4);
     169    PVar2Int(1,2,3,4);
     170    PVar2PType(1,2,3,4);
     171
    136172    return 0;
    137173}
Note: See TracChangeset for help on using the changeset viewer.