summaryrefslogtreecommitdiff
path: root/misc/cgo/test/issue4857.go
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cgo/test/issue4857.go')
-rw-r--r--misc/cgo/test/issue4857.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/misc/cgo/test/issue4857.go b/misc/cgo/test/issue4857.go
new file mode 100644
index 000000000..54dc39f8d
--- /dev/null
+++ b/misc/cgo/test/issue4857.go
@@ -0,0 +1,15 @@
+// Copyright 2013 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 cgotest
+
+/*
+#cgo CFLAGS: -Werror
+const struct { int a; } *issue4857() { return (void *)0; }
+*/
+import "C"
+
+func test4857() {
+ _ = C.issue4857()
+}