Ignore:
Timestamp:
Dec 21, 2016, 5:15:27 PM (6 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, 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, resolv-new, with_gc
Children:
0c286cf
Parents:
53e3b4a
Message:

match formal parameter type of actual function when specializing ttype parameter, flatten types when unifying ttype parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/tupleVariadic.c

    r53e3b4a r64eae56  
    5757}
    5858
    59 void ?{}(array * a, int a0, int a1, int a2, int a3) {
     59// test use of a tuple argument
     60[void] ?{}(array * a, [int, int, int, int] args) {
     61        int a0, a1, a2, a3;
     62        [a0, a1, a2, a3] = args;
    6063        a->size = 4;
    61         a->data = (int*)malloc(sizeof(int)*a->size);
     64        a->data = malloc(sizeof(int)*a->size);
    6265        a->data[0] = a0;
    6366        a->data[1] = a1;
Note: See TracChangeset for help on using the changeset viewer.