From df54deb85b8435816906b08e0341517746cd3565 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 3 Sep 2014 11:36:14 -0400 Subject: cmd/cgo, runtime: write cgo stub wrappers in Go, not C LGTM=alex.brainman, iant R=golang-codereviews, alex.brainman, iant CC=dvyukov, golang-codereviews, khr, r https://codereview.appspot.com/139070043 --- misc/cgo/test/callback.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'misc') diff --git a/misc/cgo/test/callback.go b/misc/cgo/test/callback.go index 82ed015bd..67d271404 100644 --- a/misc/cgo/test/callback.go +++ b/misc/cgo/test/callback.go @@ -13,12 +13,13 @@ void callPanic(void); import "C" import ( - "./backdoor" "path" "runtime" "strings" "testing" "unsafe" + + "./backdoor" ) // nestedCall calls into C, back into Go, and finally to f. @@ -155,8 +156,8 @@ func testCallbackCallers(t *testing.T) { "runtime.cgocallbackg1", "runtime.cgocallbackg", "runtime.cgocallback_gofunc", - "runtime.asmcgocall", - "runtime.cgocall", + "runtime.asmcgocall_errno", + "runtime.cgocall_errno", "test._Cfunc_callback", "test.nestedCall", "test.testCallbackCallers", -- cgit v1.2.1