aboutsummaryrefslogtreecommitdiff
path: root/misc/cgo/test/issue26430/a.go
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cgo/test/issue26430/a.go')
-rw-r--r--misc/cgo/test/issue26430/a.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/misc/cgo/test/issue26430/a.go b/misc/cgo/test/issue26430/a.go
new file mode 100644
index 0000000000..fbaa46b1e8
--- /dev/null
+++ b/misc/cgo/test/issue26430/a.go
@@ -0,0 +1,13 @@
+// Copyright 2018 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.
+
+package a
+
+// typedef struct S ST;
+// static ST* F() { return 0; }
+import "C"
+
+func F1() {
+ C.F()
+}