]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: add missing import "C" in TestLibraryCtrlHandler
authorAlex Brainman <alex.brainman@gmail.com>
Mon, 26 Apr 2021 07:56:10 +0000 (17:56 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Tue, 27 Apr 2021 08:36:54 +0000 (08:36 +0000)
commitca8e8317be5b288163c3623f936fb234723484cc
treea0fc4a9190f8e86119d4586de0375ff35e8b7f30
parentcb34026a95f0637a0f9eadb5e1d7aa301635f943
runtime: add missing import "C" in TestLibraryCtrlHandler

CL 211139 added TestLibraryCtrlHandler. But the CL left out import "C"
line in the test file that is supposed to be build with Cgo.

While debugging issue #45638, I discovered that the DLL built during
TestLibraryCtrlHandler does not have Dummy function. Adding import "C"
makes Dummy function appear in DLL function list.

TestLibraryCtrlHandler does not actually calls Dummy function. So I
don't see how this change affects issue #45638, but still let's make
this code correct.

Updates #45638

Change-Id: Ibab8fed29ef2ae446d0815842cf0bd040a5fb943
Reviewed-on: https://go-review.googlesource.com/c/go/+/313350
Trust: Alex Brainman <alex.brainman@gmail.com>
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/testdata/testwinlibsignal/dummy.go