Changeset d9f6d80 for tests/exceptions


Ignore:
Timestamp:
Dec 20, 2024, 3:35:35 PM (5 weeks ago)
Author:
Peter A. Buhr <pabuhr@…>
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.
Message:

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

Location:
tests/exceptions
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • tests/exceptions/cancel/coroutine.cfa

    r77148b0 rd9f6d80  
    99coroutine WillCancel {};
    1010
    11 const char * msg(CoroutineCancelled(WillCancel) * this) {
     11const char * msg(CoroutineCancelled(WillCancel) *) {
    1212        return "CoroutineCancelled(WillCancel)";
    1313}
    1414
    15 void main(WillCancel & wc) {
     15void main(WillCancel &) {
    1616        sout | '1';
    1717        cancel_stack((internal_error){&internal_vt});
     
    1919}
    2020
    21 int main(int argc, char * argv[]) {
     21int main() {
    2222        sout | nlOff;
    2323        WillCancel cancel;
  • tests/exceptions/cancel/thread.cfa

    r77148b0 rd9f6d80  
    99thread WillCancel {};
    1010
    11 const char * msg(ThreadCancelled(WillCancel) * this) {
     11const char * msg(ThreadCancelled(WillCancel) *) {
    1212        return "ThreadCancelled(WillCancel)";
    1313}
     
    5252}
    5353
    54 int main(int argc, char * argv[]) {
     54int main() {
    5555        sout | nlOff;
    5656        explicit();
  • tests/exceptions/conditional.cfa

    r77148b0 rd9f6d80  
    1616}
    1717
    18 int main(int argc, char * argv[]) {
     18int main() {
    1919        num_error exc = {&num_error_vt, 2};
    2020
  • tests/exceptions/data-except.cfa

    r77148b0 rd9f6d80  
    1414}
    1515
    16 int main(int argc, char * argv[]) {
     16int main() {
    1717        paired except = {&paired_vt, 3, 13};
    1818
  • tests/exceptions/defaults.cfa

    r77148b0 rd9f6d80  
    106106}
    107107
    108 int main(int argc, char * argv[]) {
     108int main() {
    109109        log_test();
    110110        jump_test();
  • tests/exceptions/except-io.hfa

    r77148b0 rd9f6d80  
    99};
    1010
    11 inline void ?{}(loud_exit & this, const char * area) {
     11static inline void ?{}(loud_exit & this, const char * area) {
    1212    this.area = area;
    1313}
    1414
    15 inline void ^?{}(loud_exit & this) {
     15static inline void ^?{}(loud_exit & this) {
    1616    sout | "Exiting: " | this.area;
    1717}
     
    2121};
    2222
    23 inline void ?{}(loud_region & this, const char * region) {
     23static inline void ?{}(loud_region & this, const char * region) {
    2424        this.region = region;
    2525        sout | "Entering: " | region;
    2626}
    2727
    28 inline void ^?{}(loud_region & this) {
     28static inline void ^?{}(loud_region & this) {
    2929        sout | "Exiting: " | this.region;
    3030}
  • tests/exceptions/finally.cfa

    r77148b0 rd9f6d80  
    88vtable(myth) myth_vt;
    99
    10 int main(int argc, char * argv[]) {
     10int main() {
    1111        myth exc = {&myth_vt};
    1212
  • tests/exceptions/interact.cfa

    r77148b0 rd9f6d80  
    1010vtable(moon) moon_vt;
    1111
    12 int main(int argc, char * argv[]) {
     12int main() {
    1313        // Resume falls back to terminate.
    1414        try {
  • tests/exceptions/polymorphic.cfa

    r77148b0 rd9f6d80  
    5959}
    6060
    61 int main(int argc, char * argv[]) {
     61int main() {
    6262        proxy_test();
    6363        sout | nl;
  • tests/exceptions/resume.cfa

    r77148b0 rd9f6d80  
    1414void in_void(void);
    1515
    16 int main(int argc, char * argv[]) {
     16int main() {
    1717        yin a_yin = {&yin_vt};
    1818        yang a_yang = {&yang_vt};
  • tests/exceptions/terminate.cfa

    r77148b0 rd9f6d80  
    1414void in_void(void);
    1515
    16 int main(int argc, char * argv[]) {
     16int main() {
    1717        yin a_yin = {&yin_vt};
    1818        yang a_yang = {&yang_vt};
  • tests/exceptions/trash.cfa

    r77148b0 rd9f6d80  
    99vtable(yang) yang_vt;
    1010
    11 int main(int argc, char * argv[]) {
     11int main() {
    1212        try {
    1313                try {
  • tests/exceptions/try-ctrl-flow.cfa

    r77148b0 rd9f6d80  
    189189}
    190190
    191 void main() {
     191int main() {
    192192        // Should not compile.
    193193        return 1;
  • tests/exceptions/try-leave-catch.cfa

    r77148b0 rd9f6d80  
    5353}
    5454
    55 int main(int argc, char * argv[]) {
     55int main() {
    5656        test_loop();
    5757        test_switch();
  • tests/exceptions/virtual-cast.cfa

    r77148b0 rd9f6d80  
    9393}
    9494
    95 int main (int argc, char * argv[]) {
    96 
     95int main() {
    9796        gamma * tri = malloc(); tri->virtual_table = &_gamma_vtable_instance;
    9897        beta * mid = (virtual beta *)tri;
Note: See TracChangeset for help on using the changeset viewer.