Changeset 0c286cf for src/tests


Ignore:
Timestamp:
Dec 22, 2016, 2:28:56 PM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
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:
907eccb
Parents:
64eae56
Message:

update tupleVariadic test for nullary and unary cases

Location:
src/tests
Files:
2 edited

Legend:

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

    r64eae56 r0c286cf  
     1called ?{} with no a
     2array = { }
     3called ?{} with a: 999
     4array = { 999, }
    15called ?{} with a: 123 456
    26array = { 123, 456, }
  • src/tests/tupleVariadic.c

    r64eae56 r0c286cf  
    7979
    8080int main() {
    81         // xxx - these two don't work just yet
    82         // array * x0 = new();
    83         // print(x0);
     81        array * x0 = new();
     82        print(x0);
    8483
    85         // array * x1 = new(999);
    86         // print(x1);
     84        array * x1 = new(999);
     85        print(x1);
    8786
    8887        array * x2 = new(123, 456);
Note: See TracChangeset for help on using the changeset viewer.