Changeset f7e749f for src/tests/simpleGenericTriple.c
- Timestamp:
- Dec 13, 2016, 3:56:44 PM (5 years ago)
- 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:
- fc638d2
- Parents:
- 0f35657
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/simpleGenericTriple.c
r0f35657 rf7e749f 28 28 int x1 = 123, x3 = 456; 29 29 double x2 = 999.123; 30 struct T3(int) L = { x1, x2, x3 }; 31 struct T3(int) R = { 9, 2, 3 }; 32 struct T3(int) ret = L+R; 33 printf("%d %d %d\n", ret.f0, ret.f1, ret.f2); 30 struct T3(int) Li = { x1, x2, x3 }; 31 struct T3(int) Ri = { 9, 2, 3 }; 32 struct T3(int) reti = Li+Ri; 33 printf("%d %d %d\n", reti.f0, reti.f1, reti.f2); 34 35 struct T3(double) Ld = { x1, x2, x3 }; 36 struct T3(double) Rd = { 9, 2, 3 }; 37 struct T3(double) retd = Ld+Rd; 38 printf("%g %g %g\n", retd.f0, retd.f1, retd.f2); 34 39 } 35 40
Note: See TracChangeset
for help on using the changeset viewer.