Changeset fce4e31 for tests/swap.cfa
- Timestamp:
- Jul 12, 2019, 1:50:44 PM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 8fd52e90
- Parents:
- ef5b828 (diff), 302d84c2 (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
-
tests/swap.cfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/swap.cfa
ref5b828 rfce4e31 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun Dec 23 23:00:49 201813 // Update Count : 7 712 // Last Modified On : Fri Jul 12 12:05:26 2019 13 // Update Count : 79 14 14 // 15 15 … … 85 85 struct S { int i, j; } s1 = { 1, 2 }, s2 = { 2, 1 }; 86 86 ofstream & ?|?( ofstream & os, S s ) { return os | s.i | s.j; } 87 void ?|?( ofstream & os, S s ) { (ofstream &)(os | s.i | s.j); nl( os ); }87 void ?|?( ofstream & os, S s ) { (ofstream &)(os | s.i | s.j); ends( os ); } 88 88 sout | "struct S\t\t" | s1 | "," | s2 | "\t\tswap " | nonl; 89 89 swap( s1, s2 );
Note:
See TracChangeset
for help on using the changeset viewer.