summaryrefslogtreecommitdiff
path: root/libgo/misc/cgo/errors/src/issue16116.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/misc/cgo/errors/src/issue16116.go')
-rw-r--r--libgo/misc/cgo/errors/src/issue16116.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/libgo/misc/cgo/errors/src/issue16116.go b/libgo/misc/cgo/errors/src/issue16116.go
new file mode 100644
index 00000000000..1e01cab844e
--- /dev/null
+++ b/libgo/misc/cgo/errors/src/issue16116.go
@@ -0,0 +1,12 @@
+// Copyright 2016 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 main
+
+// void f(void *p, int x) {}
+import "C"
+
+func main() {
+ _ = C.f(1) // ERROR HERE
+}