summaryrefslogtreecommitdiffstats
path: root/misc/cgo/errors/testdata/issue18889.go
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cgo/errors/testdata/issue18889.go')
-rw-r--r--misc/cgo/errors/testdata/issue18889.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/misc/cgo/errors/testdata/issue18889.go b/misc/cgo/errors/testdata/issue18889.go
new file mode 100644
index 0000000..bba6b8f
--- /dev/null
+++ b/misc/cgo/errors/testdata/issue18889.go
@@ -0,0 +1,7 @@
+package main
+
+import "C"
+
+func main() {
+ _ = C.malloc // ERROR HERE
+}