- Timestamp:
- Jan 11, 2017, 3:29:33 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:
- d3a85240
- Parents:
- 627f585
- Location:
- src/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/.expect/tupleVariadic.txt
r627f585 rdd0c97b 9 9 called ?{} with a: 10 2 3 4 10 10 array = { 10, 2, 3, 4, } 11 copy=111111 11 12 calling func 12 13 called process(int) 3 -
src/tests/tupleVariadic.c
r627f585 rdd0c97b 89 89 } 90 90 91 forall(otype T) 92 T * copy(T x) { 93 // test calling new inside a polymorphic function 94 return new(x); 95 } 96 91 97 int main() { 92 98 array * x0 = new(); … … 104 110 array * x4 = new(10, 2, 3, 4); 105 111 print(x4); 112 113 int * ptr = copy(111111); 114 printf("copy=%d\n", *ptr); 115 106 116 printf("calling func\n"); 107 117 func(3, 2.0, 111, 4.145);
Note: See TracChangeset
for help on using the changeset viewer.