Changeset 3720c9aa
- Timestamp:
- Jun 10, 2021, 9:57:41 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 50871b4, b6749fd
- Parents:
- 7f72697
- Location:
- tests/generator
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/generator/fibonacci.cfa
r7f72697 r3720c9aa 8 8 // 9 9 // Author : Thierry Delisle 10 // Created On : Mon Mar 11 // Last Modified By : 12 // Last Modified On : 13 // Update Count : 10 // Created On : Mon Mar 1 16:54:23 2020 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jun 10 21:54:14 2021 13 // Update Count : 3 14 14 // 15 16 #include <fstream.hfa> 15 17 16 18 generator Fib { … … 18 20 }; 19 21 20 void main(Fib & b) with (b) {22 void main(Fib & fib) with (fib) { 21 23 [fn1, fn] = [1, 0]; 22 24 for () { … … 29 31 Fib f1, f2; 30 32 for ( 10 ) { 31 resume( f1 ); 32 resume( f2 );33 printf("%d %d\n", f1.fn, f2.fn);33 resume( f1 ); resume( f2 ); 34 sout | f1.fn | f2.fn; 35 // sout | resume( f1 ).fn | resume( f2 ).fn; // compiler bug 34 36 } 35 36 37 } 37 38 -
tests/generator/fmtLines.cfa
r7f72697 r3720c9aa 9 9 // Author : Thierry Delisle 10 10 // Created On : Thu Mar 5 16:09:08 2020 11 // Last Modified By : 12 // Last Modified On : 13 // Update Count : 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jun 10 21:56:22 2021 13 // Update Count : 2 14 14 // 15 15 -
tests/generator/suspend_then.cfa
r7f72697 r3720c9aa 9 9 // Author : Peter A. Buhr 10 10 // Created On : Mon Apr 29 12:01:35 2019 11 // Last Modified By : 12 // Last Modified On : 13 // Update Count : 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jun 10 21:55:51 2021 13 // Update Count : 1 14 14 // 15 15
Note: See TracChangeset
for help on using the changeset viewer.