Changeset 1b54b54 for tests/loopctrl.cfa
- Timestamp:
- Feb 21, 2019, 10:38:18 AM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 6ca6811
- Parents:
- 2d2df9f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/loopctrl.cfa
r2d2df9f r1b54b54 10 10 // Created On : Wed Aug 8 18:32:59 2018 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun Dec 23 23:00:29 201813 // Update Count : 7912 // Last Modified On : Thu Feb 21 08:54:47 2019 13 // Update Count : 86 14 14 // 15 15 … … 54 54 for ( i; 5.5 -~ 0.5 ) { sout | i; } sout | nl; 55 55 for ( ui; 2u ~= 10u ~ 2u ) { sout | ui; } sout | nl; 56 for ( ui; 10u -~= 2u ~ 2u ) { sout | ui; } sout | nl | nl | nl;56 for ( ui; 10u -~= 2u ~ 2u ) { sout | ui; } sout | nl | nl; 57 57 58 for ( i; 2 ~ @ ~ 2 ) { 59 if ( i > 10 ) break; 60 sout | i; 61 } sout | nl; 62 for ( i; 2.1 ~ @ ~ @ ) { 63 if ( i > 10.5 ) break; 64 sout | i; 65 i += 1.7; 66 } sout | nl; 67 for ( i; 10 -~ @ ~ 2 ) { 68 if ( i < 0 ) break; 69 sout | i; 70 } sout | nl; 71 for ( i; 12.1 ~ @ ~ @ ) { 72 if ( i < 2.5 ) break; 73 sout | i; 74 i -= 1.7; 75 } sout | nl | nl; 76 58 77 enum { N = 10 }; 59 78 for ( N ) { sout | "N"; } sout | nl; 60 79 for ( i; N ) { sout | i; } sout | nl; 61 for ( i; N -~ 0 ) { sout | i; } sout | nl | nl | nl;80 for ( i; N -~ 0 ) { sout | i; } sout | nl | nl; 62 81 63 82 const int start = 3, comp = 10, inc = 2; 64 83 for ( i; start ~ comp ~ inc + 1 ) { sout | i; } sout | nl | nl; 65 84 66 sout | nl;67 85 for ( S s = (S){0}; s < (S){10,10}; s += (S){1} ) { sout | s; } sout | nl; 68 86 for ( s; (S){10,10} ) { sout | s; } sout | nl;
Note: See TracChangeset
for help on using the changeset viewer.