ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change
on this file since 6d2386e was
7493339,
checked in by Rob Schluntz <rschlunt@…>, 7 years ago
|
incorporate Peter's feedback, handle many TODOs
|
-
Property mode set to
100644
|
File size:
208 bytes
|
Rev | Line | |
---|
[7493339] | 1 | int sum(void){ return 0; } // (0) |
---|
| 2 | forall(ttype Params | { int sum(Params); }) |
---|
| 3 | int sum(int x, Params rest) { // (1) |
---|
| 4 | return x+sum(rest); |
---|
| 5 | } |
---|
| 6 | int main() { |
---|
| 7 | printf("%d\n", sum(10, 20, 30, 40, 50, 60)); |
---|
| 8 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.