Changeset 9edf835 for tests/manipulatorsOutput3.cfa
- Timestamp:
- Apr 24, 2020, 12:18:07 PM (3 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 13099a8b
- Parents:
- 2a01c9b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/manipulatorsOutput3.cfa
r2a01c9b r9edf835 1 1 #include <fstream.hfa> 2 2 int main() { 3 int128 x = 0xffff ;4 x <<= 64; ;3 int128 x = 0xffff, y = 0x2; 4 x <<= 64; 5 5 x += 0xffff; 6 y <<= 64; 7 y += 0123; 8 y |= 0x8000000000000000; 6 9 x = -x; 7 10 sout | x; … … 32 35 sout | left(wd( 45, oct(0123) )) | 'X'; 33 36 sout | left(wd( 45, oct(x) )) | 'X'; 37 sout | left(wd( 45, oct(y) )) | 'X'; 34 38 sout | left(wd( 45,40, oct(0123) )) | 'X'; 35 39 sout | left(wd( 45,40, oct(x) )) | 'X'; 40 sout | left(wd( 45,40, oct(y) )) | 'X'; 36 41 sout | left(wd( 40,45, oct(0123) )) | 'X'; 37 42 sout | left(wd( 40,45, oct(x) )) | 'X'; 43 sout | left(wd( 40,45, oct(y) )) | 'X'; 38 44 printf( "%#-1.10oX\n", 0123 ); 39 45 sout | left(wd( 1,10, oct(0123) )) | 'X'; … … 41 47 sout | left(wd( 40,10, oct(0123) )) | 'X'; 42 48 sout | left(wd( 40,10, oct(x) )) | 'X'; 49 sout | left(wd( 40,10, oct(y) )) | 'X'; 43 50 sout | left(wd( 10,40, oct(0123) )) | 'X'; 44 51 sout | left(wd( 10,40, oct(x) )) | 'X'; 52 sout | left(wd( 10,40, oct(y) )) | 'X'; 45 53 46 int128y = 123456789;54 y = 123456789; 47 55 sout | left(wd( 45, 49, oct(y) )) | 'X'; 48 56 sout | nl;
Note: See TracChangeset
for help on using the changeset viewer.