Changeset d9f6d80 for tests/exceptions
- Timestamp:
- Dec 20, 2024, 3:35:35 PM (5 weeks ago)
- Branches:
- master
- Children:
- 9dc05782
- Parents:
- 77148b0 (diff), 5251c6b (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. - Location:
- tests/exceptions
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/exceptions/cancel/coroutine.cfa
r77148b0 rd9f6d80 9 9 coroutine WillCancel {}; 10 10 11 const char * msg(CoroutineCancelled(WillCancel) * this) {11 const char * msg(CoroutineCancelled(WillCancel) *) { 12 12 return "CoroutineCancelled(WillCancel)"; 13 13 } 14 14 15 void main(WillCancel & wc) {15 void main(WillCancel &) { 16 16 sout | '1'; 17 17 cancel_stack((internal_error){&internal_vt}); … … 19 19 } 20 20 21 int main( int argc, char * argv[]) {21 int main() { 22 22 sout | nlOff; 23 23 WillCancel cancel; -
tests/exceptions/cancel/thread.cfa
r77148b0 rd9f6d80 9 9 thread WillCancel {}; 10 10 11 const char * msg(ThreadCancelled(WillCancel) * this) {11 const char * msg(ThreadCancelled(WillCancel) *) { 12 12 return "ThreadCancelled(WillCancel)"; 13 13 } … … 52 52 } 53 53 54 int main( int argc, char * argv[]) {54 int main() { 55 55 sout | nlOff; 56 56 explicit(); -
tests/exceptions/conditional.cfa
r77148b0 rd9f6d80 16 16 } 17 17 18 int main( int argc, char * argv[]) {18 int main() { 19 19 num_error exc = {&num_error_vt, 2}; 20 20 -
tests/exceptions/data-except.cfa
r77148b0 rd9f6d80 14 14 } 15 15 16 int main( int argc, char * argv[]) {16 int main() { 17 17 paired except = {&paired_vt, 3, 13}; 18 18 -
tests/exceptions/defaults.cfa
r77148b0 rd9f6d80 106 106 } 107 107 108 int main( int argc, char * argv[]) {108 int main() { 109 109 log_test(); 110 110 jump_test(); -
tests/exceptions/except-io.hfa
r77148b0 rd9f6d80 9 9 }; 10 10 11 inline void ?{}(loud_exit & this, const char * area) {11 static inline void ?{}(loud_exit & this, const char * area) { 12 12 this.area = area; 13 13 } 14 14 15 inline void ^?{}(loud_exit & this) {15 static inline void ^?{}(loud_exit & this) { 16 16 sout | "Exiting: " | this.area; 17 17 } … … 21 21 }; 22 22 23 inline void ?{}(loud_region & this, const char * region) {23 static inline void ?{}(loud_region & this, const char * region) { 24 24 this.region = region; 25 25 sout | "Entering: " | region; 26 26 } 27 27 28 inline void ^?{}(loud_region & this) {28 static inline void ^?{}(loud_region & this) { 29 29 sout | "Exiting: " | this.region; 30 30 } -
tests/exceptions/finally.cfa
r77148b0 rd9f6d80 8 8 vtable(myth) myth_vt; 9 9 10 int main( int argc, char * argv[]) {10 int main() { 11 11 myth exc = {&myth_vt}; 12 12 -
tests/exceptions/interact.cfa
r77148b0 rd9f6d80 10 10 vtable(moon) moon_vt; 11 11 12 int main( int argc, char * argv[]) {12 int main() { 13 13 // Resume falls back to terminate. 14 14 try { -
tests/exceptions/polymorphic.cfa
r77148b0 rd9f6d80 59 59 } 60 60 61 int main( int argc, char * argv[]) {61 int main() { 62 62 proxy_test(); 63 63 sout | nl; -
tests/exceptions/resume.cfa
r77148b0 rd9f6d80 14 14 void in_void(void); 15 15 16 int main( int argc, char * argv[]) {16 int main() { 17 17 yin a_yin = {&yin_vt}; 18 18 yang a_yang = {&yang_vt}; -
tests/exceptions/terminate.cfa
r77148b0 rd9f6d80 14 14 void in_void(void); 15 15 16 int main( int argc, char * argv[]) {16 int main() { 17 17 yin a_yin = {&yin_vt}; 18 18 yang a_yang = {&yang_vt}; -
tests/exceptions/trash.cfa
r77148b0 rd9f6d80 9 9 vtable(yang) yang_vt; 10 10 11 int main( int argc, char * argv[]) {11 int main() { 12 12 try { 13 13 try { -
tests/exceptions/try-ctrl-flow.cfa
r77148b0 rd9f6d80 189 189 } 190 190 191 voidmain() {191 int main() { 192 192 // Should not compile. 193 193 return 1; -
tests/exceptions/try-leave-catch.cfa
r77148b0 rd9f6d80 53 53 } 54 54 55 int main( int argc, char * argv[]) {55 int main() { 56 56 test_loop(); 57 57 test_switch(); -
tests/exceptions/virtual-cast.cfa
r77148b0 rd9f6d80 93 93 } 94 94 95 int main (int argc, char * argv[]) { 96 95 int main() { 97 96 gamma * tri = malloc(); tri->virtual_table = &_gamma_vtable_instance; 98 97 beta * mid = (virtual beta *)tri;
Note: See TracChangeset
for help on using the changeset viewer.