Changeset 595


Ignore:
Timestamp:
Aug 15, 2003, 3:39:52 AM (22 years ago)
Author:
bird
Message:

More, better.

Location:
trunk/testcase
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/testcase/570.gmk

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r594 r595  
    3737                               
    3838$(TESTCASE).exe: $(EXEOBJS) $(TESTCASE).gmk
    39         if $(CC) -Zmap $(CFLAGS) -o "$@" $(EXEOBJS); then true; \
     39        if $(CC) -Zmap $(CFLAGS) -o "$@" $(EXEOBJS) -lstdc++; then true; \
    4040        else    rm -f $@; false; \
    4141        fi
  • trunk/testcase/570asm.s

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r594 r595  
    5252   ret
    5353
     54.globl __ZN3foo10MemberVoidEv
     55__ZN3foo10MemberVoidEv:
     56   ret
     57
     58.globl __ZN3foo11MemberPVoidEv
     59__ZN3foo11MemberPVoidEv:
     60   ret
     61
     62.globl __ZN3foo9MemberIntEv
     63__ZN3foo9MemberIntEv:
     64   ret
     65
     66.globl __ZN3foo11MemberPTypeEv
     67__ZN3foo11MemberPTypeEv:
     68   ret
     69
  • trunk/testcase/570c.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r594 r595  
    3030typedef PTYPE   (* _System  PTypedef1PType)(void);
    3131
     32/* Alternate writing which should have the same effect I think... */
    3233typedef void    (_System *  PTypedef2Void)(void);
    3334typedef void *  (_System *  PTypedef2PVoid)(void);
     
    4546    int     (_System *  PStructMemberInt)(void* pvThis);
    4647    PTYPE   (_System *  PStructMemberPType)(void* pvThis);
     48
     49    /* Alternate writing which should have the same effect I think... */
     50    void    ( _System * PStructMember2Void)(void* pvThis);
     51    void *  ( _System * PStructMember2PVoid)(void* pvThis);
     52    int     ( _System * PStructMember2Int)(void* pvThis);
     53    PTYPE   ( _System * PStructMember2PType)(void* pvThis);
     54
    4755} VFT, *PVFT;
    4856
  • trunk/testcase/570main.cpp

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r594 r595  
    6060typedef PTYPE   (* _System  PTypedef1PType)(void);
    6161
     62/* Alternate writing which should have the same effect I think... */
    6263typedef void    (_System *  PTypedef2Void)(void);
    6364typedef void *  (_System *  PTypedef2PVoid)(void);
     
    7273typedef struct VFT
    7374{
    74     void    (_System *  PStructMemberVoid)(void* pvThis);
    75     void *  (_System *  PStructMemberPVoid)(void* pvThis);
    76     int     (_System *  PStructMemberInt)(void* pvThis);
    77     PTYPE   (_System *  PStructMemberPType)(void* pvThis);
     75    void    (* _System  PStructMemberVoid)(void* pvThis);
     76    void *  (* _System  PStructMemberPVoid)(void* pvThis);
     77    int     (* _System  PStructMemberInt)(void* pvThis);
     78    PTYPE   (* _System  PStructMemberPType)(void* pvThis);
     79
     80    /* Alternate writing which should have the same effect I think... */
     81    void    ( _System * PStructMember2Void)(void* pvThis);
     82    void *  ( _System * PStructMember2PVoid)(void* pvThis);
     83    int     ( _System * PStructMember2Int)(void* pvThis);
     84    PTYPE   ( _System * PStructMember2PType)(void* pvThis);
     85
    7886} VFT, *PVFT;
    7987
     
    113121        vft.PStructMemberPType(&vft);
    114122
     123    /* test C stuff */
    115124    DoC();
     125
     126    /** @todo test typedefs and structure field. */
    116127
    117128    return 0;
Note: See TracChangeset for help on using the changeset viewer.