aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/testdata/testprogcgo/bigstack1_windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/testdata/testprogcgo/bigstack1_windows.c')
-rw-r--r--src/runtime/testdata/testprogcgo/bigstack1_windows.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/runtime/testdata/testprogcgo/bigstack1_windows.c b/src/runtime/testdata/testprogcgo/bigstack1_windows.c
new file mode 100644
index 0000000000..551fb68309
--- /dev/null
+++ b/src/runtime/testdata/testprogcgo/bigstack1_windows.c
@@ -0,0 +1,12 @@
+// Copyright 2021 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// This is not in bigstack_windows.c because it needs to be part of
+// testprogcgo but is not part of the DLL built from bigstack_windows.c.
+
+#include "_cgo_export.h"
+
+void CallGoBigStack1(char* p) {
+ goBigStack1(p);
+}