]> Cypherpunks repositories - gostls13.git/commit
runtime/testdata/testprogcgo: fix TestCgoPanicCallback
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Wed, 27 Oct 2021 18:55:10 +0000 (01:55 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Wed, 27 Oct 2021 20:29:07 +0000 (20:29 +0000)
commit51be206114b559f7ea26fe2290f8ed274a2080c3
tree7fe2dbca6556c9ca16b5064abdd3705e934b73d1
parent30a82efcf403fed76bf1542e9477047660d5f54d
runtime/testdata/testprogcgo: fix TestCgoPanicCallback

A cgo file with "//export" declarations is not permitted to have function
definitions in the cgo comments.

Fixes #49188

Change-Id: I5c24b62b259871473ee984cea96a0edd7d42d23a
Reviewed-on: https://go-review.googlesource.com/c/go/+/359195
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/runtime/testdata/testprogcgo/panic.c [new file with mode: 0644]
src/runtime/testdata/testprogcgo/panic.go