Changeset c699602 for tests/collections/stack.cfa
- Timestamp:
- Jan 28, 2025, 10:11:24 PM (2 months ago)
- Branches:
- master
- Children:
- 49510db
- Parents:
- 2e0bb92 (diff), bada452 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tests/collections/stack.cfa ¶
r2e0bb92 rc699602 28 28 } 29 29 sout | "empty" | nl; 30 30 31 31 for ( i; 10 ) { 32 32 push( fred, *new( 2 * i ) ); … … 39 39 40 40 sout | head( fred ).i | nl; 41 41 42 42 for ( i; 9 ) { 43 43 delete( &pop( fred ) ); … … 48 48 } 49 49 sout | nl; 50 50 51 51 for ( i; 10 ) { 52 52 push( fred, *new( 2 * i + 1 ) ); … … 67 67 int j; 68 68 }; 69 __attribute__((unused)) 69 70 void ?{}( Mary & mary ) { abort(); } 70 71 void ?{}( Mary & mary, int p ) with( mary ) { … … 85 86 } 86 87 sout | "empty" | nl; 87 88 88 89 for ( i; 10 ) { 89 90 push( mary, *new( 2 * i ) ); … … 94 95 } 95 96 sout | nl; 96 97 97 98 for ( i; 9 ) { 98 99 delete( &pop( mary ) ); … … 103 104 } 104 105 sout | nl; 105 106 106 107 for ( i; 10 ) { 107 108 push( mary, *new( 2 * i + 1 ) );
Note: See TracChangeset
for help on using the changeset viewer.