- Timestamp:
- Jul 18, 2017, 4:35:52 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- f19339e
- Parents:
- 795d450
- Location:
- src/tests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/coroutine.c
r795d450 r242a902 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2017 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // fibonacci.c -- 8 // 6 // 7 // fibonacci.c -- 8 // 9 9 // Author : Thierry Delisle 10 10 // Created On : Thu Jun 8 07:29:37 2017 … … 12 12 // Last Modified On : Thu Jun 8 07:37:12 2017 13 13 // Update Count : 5 14 // 14 // 15 15 16 16 #include <fstream> … … 21 21 }; 22 22 23 void ?{}( Fibonacci *this ) {24 this ->fn = 0;23 void ?{}( Fibonacci & this ) { 24 this.fn = 0; 25 25 } 26 26 -
src/tests/monitor.c
r795d450 r242a902 8 8 }; 9 9 10 void ?{}(global_t *this) {11 this ->value = 0;10 void ?{}(global_t & this) { 11 this.value = 0; 12 12 } 13 13 -
src/tests/thread.c
r795d450 r242a902 7 7 thread Second { semaphore* lock; }; 8 8 9 void ?{}( First * this, semaphore* lock ) { this->lock = lock; }10 void ?{}( Second * this, semaphore* lock ) { this->lock = lock; }9 void ?{}( First & this, semaphore* lock ) { this.lock = lock; } 10 void ?{}( Second & this, semaphore* lock ) { this.lock = lock; } 11 11 12 12 void main(First* this) {
Note: See TracChangeset
for help on using the changeset viewer.