// // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo // // The contents of this file are covered under the licence agreement in the // file "LICENCE" distributed with Cforall. // // suspend.cfa -- // // Author : Thierry Delisle // Created On : Thu Mar 5 16:03:16 2020 // Last Modified By : // Last Modified On : // Update Count : // #include generator A {}; void main(A & a) { suspend { suspend; } suspend{ int foo() { return 3; } } } coroutine B {}; void main(B & b) { suspend generator; suspend {}; }