Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/exceptions/polymorphic.cfa

    rd00d581 recfd758  
    11// Testing polymophic exception types.
    22
    3 forall(T &) exception proxy {};
     3#include <exception.hfa>
    44
    5 vtable(proxy(int)) proxy_int;
    6 vtable(proxy(char)) proxy_char;
     5EHM_FORALL_EXCEPTION(proxy, (T&), (T))();
     6
     7EHM_FORALL_VIRTUAL_TABLE(proxy, (int), proxy_int);
     8EHM_FORALL_VIRTUAL_TABLE(proxy, (char), proxy_char);
    79
    810void proxy_test(void) {
     
    3133}
    3234
    33 forall(T) exception cell {
     35EHM_FORALL_EXCEPTION(cell, (T), (T))(
    3436        T data;
    35 };
     37);
    3638
    37 vtable(cell(int)) int_cell;
    38 vtable(cell(char)) char_cell;
    39 vtable(cell(bool)) bool_cell;
     39EHM_FORALL_VIRTUAL_TABLE(cell, (int), int_cell);
     40EHM_FORALL_VIRTUAL_TABLE(cell, (char), char_cell);
     41EHM_FORALL_VIRTUAL_TABLE(cell, (bool), bool_cell);
    4042
    4143void cell_test(void) {
Note: See TracChangeset for help on using the changeset viewer.