Changeset 3bf9d10 for tests/exceptions/trash.cfa
- Timestamp:
- Jun 21, 2023, 9:45:08 PM (13 months ago)
- Branches:
- master
- Children:
- 6065281f
- Parents:
- 2de175ce
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/exceptions/trash.cfa
r2de175ce r3bf9d10 1 1 // Make sure throw-catch during unwind does not trash internal data. 2 3 #include <fstream.hfa> 2 4 3 5 exception yin {}; … … 15 17 throw (yang){&yang_vt}; 16 18 } catch (yin *) { 17 printf("inner yin\n");19 sout | "inner yin"; 18 20 } catch (yang *) { 19 printf("inner yang\n");21 sout | "inner yang"; 20 22 } 21 23 } 22 24 } catch (yin *) { 23 printf("outer yin\n");25 sout | "outer yin"; 24 26 } catch (yang *) { 25 printf("outer yang\n");27 sout | "outer yang"; 26 28 } 27 29 }
Note: See TracChangeset
for help on using the changeset viewer.