Changeset d3cf623
- Timestamp:
- Dec 20, 2024, 10:52:16 AM (9 months ago)
- Branches:
- master
- Children:
- b05d79d
- Parents:
- df91e15
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Virtual/Tables.cpp
rdf91e15 rd3cf623 175 175 { new ast::ObjectDecl( 176 176 location, 177 "__unused",177 /* The parameter only exists to provide a type id. */ "", 178 178 new ast::PointerType( exceptType ) 179 179 ) }, -
tests/Makefile.am
rdf91e15 rd3cf623 186 186 enum_tests/planet \ 187 187 enum_tests/structEnum \ 188 exceptions/cancel/coroutine \189 exceptions/cancel/thread \190 188 exceptions/cardgame \ 191 exceptions/conditional \192 exceptions/conditional-threads \193 exceptions/cor_resumer \194 exceptions/data-except \195 189 exceptions/defaults \ 196 190 exceptions/defaults-threads \ 197 exceptions/fibonacci_nonlocal \198 exceptions/finally \199 exceptions/finally-threads \200 191 exceptions/hotpotato \ 201 192 exceptions/hotpotato_checked \ 202 exceptions/interact \203 193 exceptions/pingpong_nonlocal \ 204 194 exceptions/polymorphic \ 205 exceptions/resume \206 exceptions/resume-threads \207 exceptions/terminate \208 exceptions/terminate-threads \209 exceptions/trash \210 195 exceptions/try-leave-catch \ 211 exceptions/virtual-cast \212 196 exceptions/virtual-poly \ 213 197 expression \ -
tests/exceptions/cancel/coroutine.cfa
rdf91e15 rd3cf623 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
rdf91e15 rd3cf623 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
rdf91e15 rd3cf623 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
rdf91e15 rd3cf623 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
rdf91e15 rd3cf623 106 106 } 107 107 108 int main( int argc, char * argv[]) {108 int main() { 109 109 log_test(); 110 110 jump_test(); -
tests/exceptions/finally.cfa
rdf91e15 rd3cf623 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
rdf91e15 rd3cf623 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
rdf91e15 rd3cf623 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
rdf91e15 rd3cf623 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
rdf91e15 rd3cf623 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
rdf91e15 rd3cf623 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
rdf91e15 rd3cf623 189 189 } 190 190 191 voidmain() {191 int main() { 192 192 // Should not compile. 193 193 return 1; -
tests/exceptions/try-leave-catch.cfa
rdf91e15 rd3cf623 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
rdf91e15 rd3cf623 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.