Changeset 200fcb3 for tests/io1.cfa
- Timestamp:
- Dec 12, 2018, 9:16:12 AM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 5ebb1368
- Parents:
- 3d99498
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/io1.cfa
r3d99498 r200fcb3 10 10 // Created On : Wed Mar 2 16:56:02 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Nov 6 17:57:17201813 // Update Count : 10 512 // Last Modified On : Tue Dec 4 21:40:28 2018 13 // Update Count : 106 14 14 // 15 15 … … 18 18 int main() { 19 19 int x = 3, y = 5, z = 7; 20 sout | x * 3 | y + 1 | z << 2 | x == y | (x | y) | (x || y) | (x > z ? 1 : 2) | endl;21 sout | 1 | 2 | 3 | endl;22 sout | '1' | '2' | '3' | endl;23 sout | 1 | "" | 2 | "" | 3 | endl;24 sout | endl;20 sout | x * 3 | y + 1 | z << 2 | x == y | (x | y) | (x || y) | (x > z ? 1 : 2); 21 sout | 1 | 2 | 3; 22 sout | '1' | '2' | '3'; 23 sout | 1 | "" | 2 | "" | 3; 24 sout; 25 25 26 sout | "opening delimiters" | endl;26 sout | "opening delimiters"; 27 27 sout 28 28 | "x (" | 1 … … 36 36 | "x ¿" | 9 37 37 | "x «" | 10 38 | endl | endl;38 | nl; 39 39 40 sout | "closing delimiters" | endl;40 sout | "closing delimiters"; 41 41 sout 42 42 | 1 | ", x" … … 51 51 | 10 | "] x" 52 52 | 11 | "} x" 53 | endl | endl;53 | nl; 54 54 55 sout | "opening/closing delimiters" | endl;55 sout | "opening/closing delimiters"; 56 56 sout 57 57 | "x`" | 1 | "`x'" | 2 … … 61 61 | "\vx\n" | 9 | "\nx\r" | 10 62 62 | "\rx" 63 | endl | endl;63 | nl; 64 64 65 sout | "override opening/closing delimiters" | endl;66 sout | "x ( " | 1 | " ) x" | 2 | " , x" | 3 | " :x: " | 4 | endl;67 sout | endl;65 sout | "override opening/closing delimiters"; 66 sout | "x ( " | 1 | " ) x" | 2 | " , x" | 3 | " :x: " | 4; 67 sout; 68 68 } 69 69
Note: See TracChangeset
for help on using the changeset viewer.