summaryrefslogtreecommitdiff
path: root/misc/cgo
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2014-04-26 22:31:32 -0700
committerIan Lance Taylor <iant@golang.org>2014-04-26 22:31:32 -0700
commitaacee860d75f4880b8315f42f35b133dd6127f04 (patch)
tree557843680438610eb0ffb14d8c963eefea12e203 /misc/cgo
parent19ad7ca20214d25fe390f89ec97a64c2615c1d68 (diff)
downloadgo-aacee860d75f4880b8315f42f35b133dd6127f04.tar.gz
misc/cgo/test/backdoor: add gccgo version of backdoor function
For the gc compiler the Go function Issue7695 is defined in runtime.c, but there is no way to do that for gccgo, because there is no way to get the correct pkgpath. The test is not important for gccgo in any case. LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://codereview.appspot.com/93870044
Diffstat (limited to 'misc/cgo')
-rw-r--r--misc/cgo/test/backdoor/backdoor_gccgo.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/misc/cgo/test/backdoor/backdoor_gccgo.go b/misc/cgo/test/backdoor/backdoor_gccgo.go
new file mode 100644
index 000000000..514f76ec5
--- /dev/null
+++ b/misc/cgo/test/backdoor/backdoor_gccgo.go
@@ -0,0 +1,11 @@
+// Copyright 2014 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 the gccgo version of the stub in runtime.c.
+
+// +build gccgo
+
+package backdoor
+
+func Issue7695(x1, x2, x3, x4, x5, x6, x7, x8 uintptr) {}