Ignore:
Timestamp:
Jun 26, 2023, 10:51:47 AM (2 years ago)
Author:
caparson <caparson@…>
Branches:
master
Children:
917e1fd
Parents:
adc73a5 (diff), 1fbf481 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/exceptions/trash.cfa

    radc73a5 r48ec19a  
    11// Make sure throw-catch during unwind does not trash internal data.
     2
     3#include <fstream.hfa>
    24
    35exception yin {};
     
    1517                                throw (yang){&yang_vt};
    1618                        } catch (yin *) {
    17                                 printf("inner yin\n");
     19                                sout | "inner yin";
    1820                        } catch (yang *) {
    19                                 printf("inner yang\n");
     21                                sout | "inner yang";
    2022                        }
    2123                }
    2224        } catch (yin *) {
    23                 printf("outer yin\n");
     25                sout | "outer yin";
    2426        } catch (yang *) {
    25                 printf("outer yang\n");
     27                sout | "outer yang";
    2628        }
    2729}
Note: See TracChangeset for help on using the changeset viewer.