Changeset 5727c23
- Timestamp:
- Aug 5, 2020, 6:36:10 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- dd23e66
- Parents:
- 97c3159
- Files:
-
- 1 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/exception.hfa
r97c3159 r5727c23 160 160 161 161 #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) ) \ 164 163 void ?{}(exception_name parameters & this) 165 164 -
tests/exceptions/polymorphic.cfa
r97c3159 r5727c23 3 3 #include <exception.hfa> 4 4 5 FORALL_TRIVIAL_EXCEPTION _(proxy, (otype U3), (U3));6 FORALL_TRIVIAL_INSTANCE _(proxy, (otype U4), (U4))5 FORALL_TRIVIAL_EXCEPTION(proxy, (otype T), (T)); 6 FORALL_TRIVIAL_INSTANCE(proxy, (otype U), (U)) 7 7 8 8 const char * msg(proxy(int) * this) { return "proxy(int)"; }
Note: See TracChangeset
for help on using the changeset viewer.