Changeset 5727c23


Ignore:
Timestamp:
Aug 5, 2020, 6:36:10 PM (15 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast, new-ast-unique-expr
Children:
dd23e66
Parents:
97c3159
Message:

Fixed up the polymo{r}phic exception test. Some left over code hid an error on my machine.

Files:
1 edited
2 moved

Legend:

Unmodified
Added
Removed
  • libcfa/src/exception.hfa

    r97c3159 r5727c23  
    160160
    161161#define _FORALL_CTOR0_DECLARATION(exception_name, assertions, parameters) \
    162         forall(_UNPACK assertions | VTABLE_ASSERTION(exception_name, assertions, parameters) ) \
    163                 /*| { VTABLE_TYPE(exception_name) parameters VTABLE_NAME(exception_name); } ) */ \
     162        forall(_UNPACK assertions | VTABLE_ASSERTION(exception_name, parameters) ) \
    164163        void ?{}(exception_name parameters & this)
    165164
  • tests/exceptions/polymorphic.cfa

    r97c3159 r5727c23  
    33#include <exception.hfa>
    44
    5 FORALL_TRIVIAL_EXCEPTION_(proxy, (otype U3), (U3));
    6 FORALL_TRIVIAL_INSTANCE_(proxy, (otype U4), (U4))
     5FORALL_TRIVIAL_EXCEPTION(proxy, (otype T), (T));
     6FORALL_TRIVIAL_INSTANCE(proxy, (otype U), (U))
    77
    88const char * msg(proxy(int) * this) { return "proxy(int)"; }
Note: See TracChangeset for help on using the changeset viewer.