diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/varargs.toc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/varargs.toc b/tests/varargs.toc index 8709a64..0885da4 100644 --- a/tests/varargs.toc +++ b/tests/varargs.toc @@ -6,22 +6,18 @@ tprintf ::= fn(fmt: []char, args: ..) { sum ::= fn(x: ..) int { total := 0; - n := 0; for a, i := x { total += a + i - i + 1; - n += 1; } - total - n + total - x.len }; sumc ::= fn(x:: ..) int { total := 0; - n := 0; for a, i := x { total += a + i - i + 1; - n += 1; } - total - n + total - x.len }; do_printing ::= fn(x::..) { |