Changeset 9edf835 for tests


Ignore:
Timestamp:
Apr 24, 2020, 12:18:07 PM (4 years ago)
Author:
Peter A. Buhr <pabuhr@…>
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
Message:

more work on manipulators for int128 numbers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/manipulatorsOutput3.cfa

    r2a01c9b r9edf835  
    11#include <fstream.hfa>
    22int main() {
    3     int128 x = 0xffff;
    4     x <<= 64;;
     3    int128 x = 0xffff, y = 0x2;
     4    x <<= 64;
    55    x += 0xffff;
     6    y <<= 64;
     7    y += 0123;
     8    y |= 0x8000000000000000;
    69    x = -x;
    710    sout | x;
     
    3235    sout | left(wd( 45, oct(0123) )) | 'X';
    3336    sout | left(wd( 45, oct(x) )) | 'X';
     37    sout | left(wd( 45, oct(y) )) | 'X';
    3438    sout | left(wd( 45,40, oct(0123) )) | 'X';
    3539    sout | left(wd( 45,40, oct(x) )) | 'X';
     40    sout | left(wd( 45,40, oct(y) )) | 'X';
    3641    sout | left(wd( 40,45, oct(0123) )) | 'X';
    3742    sout | left(wd( 40,45, oct(x) )) | 'X';
     43    sout | left(wd( 40,45, oct(y) )) | 'X';
    3844    printf( "%#-1.10oX\n", 0123 );
    3945    sout | left(wd( 1,10, oct(0123) )) | 'X';
     
    4147    sout | left(wd( 40,10, oct(0123) )) | 'X';
    4248    sout | left(wd( 40,10, oct(x) )) | 'X';
     49    sout | left(wd( 40,10, oct(y) )) | 'X';
    4350    sout | left(wd( 10,40, oct(0123) )) | 'X';
    4451    sout | left(wd( 10,40, oct(x) )) | 'X';
     52    sout | left(wd( 10,40, oct(y) )) | 'X';
    4553
    46     int128 y = 123456789;
     54    y = 123456789;
    4755    sout | left(wd( 45, 49, oct(y) )) | 'X';
    4856    sout | nl;
Note: See TracChangeset for help on using the changeset viewer.