Changeset b3c8496
- Timestamp:
- Dec 16, 2020, 4:01:49 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 53449a4
- Parents:
- accc5dbb
- Location:
- tests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/queue.cfa
raccc5dbb rb3c8496 13 13 void ?{}( Fred & fred, int p ) with( fred ) { 14 14 i = p; 15 } 16 Fred *& Next( Fred * n ) { 17 return (Fred *)Next( (Colable *)n ); 18 } 19 20 bool listed( Fred * n ) { 21 return Next( (Colable *)n ) != 0p; 15 22 } 16 23 … … 68 75 } 69 76 77 Mary *& Next( Mary * n ) { 78 return (Mary *)Next( (Colable *)n ); 79 } 80 81 bool listed( Mary * n ) { 82 return Next( (Colable *)n ) != 0p; 83 } 84 70 85 Queue(Mary) mary; 71 86 QueueIter(Mary) maryIter = { mary }; -
tests/sequence.cfa
raccc5dbb rb3c8496 13 13 void ?{}( Fred & fred, int p ) with( fred ) { 14 14 i = p; 15 } 16 17 Fred *& Back( Fred * n ) { 18 return (Fred *)Back( (Seqable *)n ); 19 } 20 21 Fred *& Next( Fred * n ) { 22 return (Fred *)Next( (Colable *)n ); 23 } 24 25 bool listed( Fred * n ) { 26 return Next( (Colable *)n ) != 0p; 15 27 } 16 28 … … 76 88 } 77 89 90 Mary *& Back( Mary * n ) { 91 return (Mary *)Back( (Seqable *)n ); 92 } 93 94 Mary *& Next( Mary * n ) { 95 return (Mary *)Next( (Colable *)n ); 96 } 97 98 bool listed( Mary * n ) { 99 return Next( (Colable *)n ) != 0p; 100 } 101 78 102 Sequence(Mary) mary; 79 103 Sequence(Mary) baz; -
tests/stack.cfa
raccc5dbb rb3c8496 13 13 void ?{}( Fred & fred, int p ) with( fred ) { 14 14 i = p; 15 } 16 Fred *& Next( Fred * n ) { 17 return (Fred *)Next( (Colable *)n ); 18 } 19 20 bool listed( Fred * n ) { 21 return Next( (Colable *)n ) != 0p; 15 22 } 16 23 … … 68 75 } 69 76 77 Mary *& Next( Mary * n ) { 78 return (Mary *)Next( (Colable *)n ); 79 } 80 81 bool listed( Mary * n ) { 82 return Next( (Colable *)n ) != 0p; 83 } 84 70 85 Stack(Mary) mary; 71 86 StackIter(Mary) maryIter = { mary };
Note: See TracChangeset
for help on using the changeset viewer.