- Timestamp:
- Dec 21, 2016, 5:15:27 PM (8 years ago)
- 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:
- 0c286cf
- Parents:
- 53e3b4a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/tupleVariadic.c
r53e3b4a r64eae56 57 57 } 58 58 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; 60 63 a->size = 4; 61 a->data = (int*)malloc(sizeof(int)*a->size);64 a->data = malloc(sizeof(int)*a->size); 62 65 a->data[0] = a0; 63 66 a->data[1] = a1;
Note: See TracChangeset
for help on using the changeset viewer.