From 8fd20c574a55b03ac2723e461d5a4890763d7372 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Fri, 13 Mar 2020 13:19:30 -0400 Subject: varargs len --- tests/varargs.toc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'tests') 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::..) { -- cgit v1.2.3