Changeset 757099e


Ignore:
Timestamp:
Jan 31, 2023, 3:00:47 PM (22 months ago)
Author:
caparsons <caparson@…>
Branches:
ADT, ast-experimental, master
Children:
0393653
Parents:
a8e8c67
Message:

reverted changes to types.cfa now that I fixed the underlying bug and added static send actor test

Location:
tests/concurrent/actors
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • tests/concurrent/actors/types.cfa

    ra8e8c67 r757099e  
    55#include <stdio.h>
    66#include <mutex_stmt.hfa>
     7
     8struct dummy_actor { actor a; }; // this won't work since the actor isn't inlined
    79
    810struct derived_actor {
     
    2628}
    2729
     30Allocation receive( derived_actor & receiver, d_msg & msg ) {
     31    return receive( receiver, msg.num );
     32}
     33
    2834struct derived_actor2 {
     35    struct nested { int i; }; // testing nested before inline
    2936    inline actor;
    3037};
    3138static inline void ?{}( derived_actor2 & this ) { ((actor &)this){}; }
     39
     40Allocation receive( derived_actor2 & receiver, d_msg & msg ) {
     41    mutex(sout) sout | msg.num;
     42    return Finished;
     43}
    3244
    3345struct derived_actor3 {
     
    4153};
    4254static inline void ?{}( d_msg2 & this ) { ((message &)this){}; }
    43 
    44 Allocation receive( derived_actor2 & receiver, d_msg & msg ) {
    45     mutex(sout) sout | msg.num;
    46     return Finished;
    47 }
    48 
    49 Allocation receive( derived_actor & receiver, d_msg & msg ) {
    50     return receive( receiver, msg.num );
    51 }
    5255
    5356Allocation receive( derived_actor3 & receiver, d_msg & msg ) {
Note: See TracChangeset for help on using the changeset viewer.