Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/exceptions/trash.cfa

    r3bf9d10 rd00d581  
    11// Make sure throw-catch during unwind does not trash internal data.
    2 
    3 #include <fstream.hfa>
    42
    53exception yin {};
     
    1715                                throw (yang){&yang_vt};
    1816                        } catch (yin *) {
    19                                 sout | "inner yin";
     17                                printf("inner yin\n");
    2018                        } catch (yang *) {
    21                                 sout | "inner yang";
     19                                printf("inner yang\n");
    2220                        }
    2321                }
    2422        } catch (yin *) {
    25                 sout | "outer yin";
     23                printf("outer yin\n");
    2624        } catch (yang *) {
    27                 sout | "outer yang";
     25                printf("outer yang\n");
    2826        }
    2927}
Note: See TracChangeset for help on using the changeset viewer.