Changeset 61dafb8
- Timestamp:
- Nov 7, 2018, 5:13:08 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 3180aa1
- Parents:
- 909aebf
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/user/user.tex
r909aebf r61dafb8 11 11 %% Created On : Wed Apr 6 14:53:29 2016 12 12 %% Last Modified By : Peter A. Buhr 13 %% Last Modified On : Fri Nov 2 07:27:24201814 %% Update Count : 339 713 %% Last Modified On : Wed Nov 7 17:00:49 2018 14 %% Update Count : 3399 15 15 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 16 16 … … 582 582 for ( ®ui; 2u ~= 10u ~ 2u® ) { sout | ui; } 583 583 for ( ®ui; 10u -~= 2u ~ 2u® ) { sout | ui; } 584 int start = 3, comp = 10, inc = 2; 584 enum { N = 10 }; 585 for ( ®N® ) { sout | "N"; } 586 for ( ®i; N® ) { sout | i; } 587 for ( ®i; N -~ 0® ) { sout | i; } 588 const int start = 3, comp = 10, inc = 2; 585 589 for ( ®i; start ~ comp ~ inc + 1® ) { sout | i; } 586 590 \end{cfa} … … 606 610 607 611 sout | endl; 612 sout | endl; 613 sout | endl | endl; 614 615 sout | endl; 608 616 \end{cfa} 609 617 & … … 626 634 2 4 6 8 10 627 635 10 8 6 4 2 636 637 N N N N N N N N N N 638 0 1 2 3 4 5 6 7 8 9 639 10 9 8 7 6 5 4 3 2 1 628 640 629 641 3 6 9 -
tests/.expect/loopctrl.txt
r909aebf r61dafb8 20 20 21 21 22 N N N N N N N N N N 23 0 1 2 3 4 5 6 7 8 9 24 10 9 8 7 6 5 4 3 2 1 25 26 22 27 3 6 9 28 23 29 24 30 (0 0)(1 1)(2 2)(3 3)(4 4)(5 5)(6 6)(7 7)(8 8)(9 9) -
tests/loopctrl.cfa
r909aebf r61dafb8 10 10 // Created On : Wed Aug 8 18:32:59 2018 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Nov 6 17:58:25201813 // Update Count : 5212 // Last Modified On : Wed Nov 7 16:54:11 2018 13 // Update Count : 62 14 14 // 15 15 … … 41 41 for ( 1 ) { sout | "A"; } sout | endl; 42 42 for ( 10 ) { sout | "A"; } sout | endl; 43 44 43 for ( 1 ~= 10 ~ 2 ) { sout | "B"; } sout | endl; 45 44 for ( 10 -~= 1 ~ 2 ) { sout | "C"; } sout | endl; … … 52 51 for ( i; 0.5 ~ 5.5 ) { sout | i; } sout | endl; 53 52 for ( i; 5.5 -~ 0.5 ) { sout | i; } sout | endl; 54 55 53 for ( ui; 2u ~= 10u ~ 2u ) { sout | ui; } sout | endl; 56 54 for ( ui; 10u -~= 2u ~ 2u ) { sout | ui; } sout | endl | endl | endl; 57 55 56 enum { N = 10 }; 57 for ( N ) { sout | "N"; } sout | endl; 58 for ( i; N ) { sout | i; } sout | endl; 59 for ( i; N -~ 0 ) { sout | i; } sout | endl | endl | endl; 60 58 61 const int start = 3, comp = 10, inc = 2; 59 for ( i; start ~ comp ~ inc + 1 ) { sout | i; } sout | endl ;62 for ( i; start ~ comp ~ inc + 1 ) { sout | i; } sout | endl | endl; 60 63 61 64 sout | endl;
Note: See TracChangeset
for help on using the changeset viewer.