From 582457b81e73addf09d12a848366cedfc30681a2 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Sun, 22 Sep 2019 00:16:26 +0200 Subject: interp: implement runtime.sliceCopy This implements the copy() built-in function. It may not work in all cases, but should work in most cases. This commit gets the following 3 packages to compile, according to tinygo-site/imports/main.go: * encoding/base32 * encoding/base64 * encoding/pem (was blocked by encoding/base64) --- interp/interp_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'interp/interp_test.go') diff --git a/interp/interp_test.go b/interp/interp_test.go index b9f37e1ba..9e3808540 100644 --- a/interp/interp_test.go +++ b/interp/interp_test.go @@ -12,6 +12,7 @@ import ( func TestInterp(t *testing.T) { for _, name := range []string{ "basic", + "slice-copy", } { name := name // make tc local to this closure t.Run(name, func(t *testing.T) { -- cgit v1.2.3