summaryrefslogtreecommitdiffstats
path: root/misc/cgo/testshared/testdata/trivial/trivial.go
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cgo/testshared/testdata/trivial/trivial.go')
-rw-r--r--misc/cgo/testshared/testdata/trivial/trivial.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/misc/cgo/testshared/testdata/trivial/trivial.go b/misc/cgo/testshared/testdata/trivial/trivial.go
new file mode 100644
index 0000000..6ade47c
--- /dev/null
+++ b/misc/cgo/testshared/testdata/trivial/trivial.go
@@ -0,0 +1,9 @@
+package main
+
+func main() {
+ // This is enough to make sure that the executable references
+ // a type descriptor, which was the cause of
+ // https://golang.org/issue/25970.
+ c := make(chan int)
+ _ = c
+}