Changeset 48ec19a for tests/exceptions/trash.cfa
- Timestamp:
- Jun 26, 2023, 10:51:47 AM (2 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/exceptions/trash.cfa
radc73a5 r48ec19a 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.