Changeset c58f4ab for src/tests


Ignore:
Timestamp:
Mar 23, 2017, 11:30:42 AM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
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:
578b637
Parents:
9fcdfa3 (diff), 27cc24e (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.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Location:
src/tests
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/tests/.expect/io.txt

    r9fcdfa3 rc58f4ab  
    1818abc, $xyz
    1919
    20 v(27 v[27 v{27 $27 £27 ¥27 ¡27 ¿27 «27
    21 25, 25. 25: 25; 25! 25? 25) 25] 25} 25% 25¢ 25»
     20v(27 v[27 v{27 $27 =27 £27 ¥27 ¡27 ¿27 «27
     2125, 25. 25: 25; 25! 25? 25% 25¢ 25» 25) 25] 25}
    222225'27 25`27 25"27 25 27 25
    232327 25
     
    252527 25   27 25
    262627
     273, 4, a, 7.2
     283, 4, a, 7.2
     293 4 a 7.2
     30 3 4 a 7.234a7.2 3 4 a 7.2
     313-4-a-7.2^3^4-3-4-a-7.2
  • src/tests/Makefile.am

    r9fcdfa3 rc58f4ab  
    5151        @+python test.py --list --concurrent=${concurrent}
    5252
     53.dummy : .dummy.c
     54        ${CC} ${CFLAGS} -XCFA -n ${<} -o ${@}
     55
    5356constant0-1DP : constant0-1.c
    5457        ${CC} ${CFLAGS} -DDUPS ${<} -o ${@}
  • src/tests/Makefile.in

    r9fcdfa3 rc58f4ab  
    669669        @+python test.py --list --concurrent=${concurrent}
    670670
     671.dummy : .dummy.c
     672        ${CC} ${CFLAGS} -XCFA -n ${<} -o ${@}
     673
    671674constant0-1DP : constant0-1.c
    672675        ${CC} ${CFLAGS} -DDUPS ${<} -o ${@}
  • src/tests/io.c

    r9fcdfa3 rc58f4ab  
    1010// Created On       : Wed Mar  2 16:56:02 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Jul  5 18:29:23 2016
    13 // Update Count     : 31
     12// Last Modified On : Tue Mar 21 22:36:06 2017
     13// Update Count     : 48
    1414//
    1515
     
    6262
    6363        sepSet( sout, ", $" );                                                                          // change separator, maximum of 15 characters
    64         sout | f | d | ld | endl                                                                        // floating point without separator
    65                  | fc | dc | ldc | endl                                                                 // complex without separator
     64        sout | f | d | ld | endl
     65                 | fc | dc | ldc | endl
    6666                 | s1 | s2 | endl;
    6767        sout | endl;
     
    7474                | "v{" | 27
    7575                | "$" | 27
     76                | "=" | 27
    7677                | "£" | 27
    7778                | "¥" | 27
     
    8788                | 25 | "!"
    8889                | 25 | "?"
     90                | 25 | "%"
     91                | 25 | "¢"
     92                | 25 | "»"
    8993                | 25 | ")"
    9094                | 25 | "]"
    9195                | 25 | "}"
    92                 | 25 | "%"
    93                 | 25 | "¢"
    94                 | 25 | "»"
    9596                | endl
    9697                // opening-closing delimiters
     
    105106                | 25 | "\v" | 27
    106107                | 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;
    107118}
    108119
  • src/tests/test.py

    r9fcdfa3 rc58f4ab  
    2525# parses the Makefile to find the machine type (32-bit / 64-bit)
    2626def getMachineType():
    27         sh('echo "int main() { return 0; }" > .dummy.c')
     27        sh('echo "void ?{}(int*a,int b){}int main(){return 0;}" > .dummy.c')
    2828        sh("make .dummy", print2stdout=False)
    2929        _, out = sh("file .dummy", print2stdout=False)
Note: See TracChangeset for help on using the changeset viewer.