Ignore:
Timestamp:
Jul 27, 2017, 2:02:36 PM (4 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
7d49b72
Parents:
25bd9074
Message:

Update more tests for references

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/multi-monitor.c

    r25bd9074 r00e80b6  
    1414}
    1515
    16 struct MyThread { 
    17         thread_desc __thrd; 
     16struct MyThread {
     17        thread_desc __thrd;
    1818        int target;
    1919};
     
    2121DECL_THREAD(MyThread);
    2222
    23 void ?{}( MyThread * this, int target ) {
    24         this->target = target;
     23void ?{}( MyThread & this, int target ) {
     24        this.target = target;
    2525}
    2626
    27 void ^?{}( MyThread * mutex this ) {}
     27void ^?{}( MyThread & mutex this ) {}
    2828
    2929void main( MyThread* this ) {
     
    4242                scoped(MyThread) * f[6];
    4343                for(int i = 0; i < 6; i++) {
    44                         f[i] = ((scoped(MyThread) *)malloc()){ i % 3 };
     44                        f[i] = (*(scoped(MyThread) *)malloc()){ i % 3 };
    4545                }
    4646
Note: See TracChangeset for help on using the changeset viewer.