- Timestamp:
- Mar 21, 2017, 10:04:47 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 87d13cd
- Parents:
- 89d129c
- Location:
- src/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/.expect/io.txt
r89d129c r829c907 18 18 abc, $xyz 19 19 20 v(27 v[27 v{27 $27 £27 ¥27 ¡27 ¿27 «2721 25, 25. 25: 25; 25! 25? 25 ) 25] 25} 25% 25¢ 25»20 v(27 v[27 v{27 $27 =27 £27 ¥27 ¡27 ¿27 «27 21 25, 25. 25: 25; 25! 25? 25% 25¢ 25» 25) 25] 25} 22 22 25'27 25`27 25"27 25 27 25 23 23 27 25 … … 25 25 27 25 27 25 26 26 27 27 Segmentation fault (core dumped) -
src/tests/io.c
r89d129c r829c907 10 10 // Created On : Wed Mar 2 16:56:02 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Jul 5 18:29:23 201613 // Update Count : 3112 // Last Modified On : Tue Mar 21 21:24:50 2017 13 // Update Count : 47 14 14 // 15 15 … … 62 62 63 63 sepSet( sout, ", $" ); // change separator, maximum of 15 characters 64 sout | f | d | ld | endl // floating point without separator65 | fc | dc | ldc | endl // complex without separator64 sout | f | d | ld | endl 65 | fc | dc | ldc | endl 66 66 | s1 | s2 | endl; 67 67 sout | endl; … … 74 74 | "v{" | 27 75 75 | "$" | 27 76 | "=" | 27 76 77 | "£" | 27 77 78 | "¥" | 27 … … 87 88 | 25 | "!" 88 89 | 25 | "?" 90 | 25 | "%" 91 | 25 | "¢" 92 | 25 | "»" 89 93 | 25 | ")" 90 94 | 25 | "]" 91 95 | 25 | "}" 92 | 25 | "%"93 | 25 | "¢"94 | 25 | "»"95 96 | endl 96 97 // opening-closing delimiters … … 105 106 | 25 | "\v" | 27 106 107 | endl; 108 109 [int, int, const char *, double] t = { 3, 4, "a", 7.2 }; 110 sout | [ 3, 4, 'a', 7.2 ] | endl; 111 sout | t | endl; 112 sepSetTuple( sout, " " ); 113 sout | t | endl; 114 sout | sepOn | t | sepDisable | t | sepEnable | t | endl; 115 sepSet( sout, "^" ); 116 sepSetTuple( sout, "-" ); 117 sout | t | 3 | 4 | t | endl; 107 118 } 108 119
Note: See TracChangeset
for help on using the changeset viewer.