aboutsummaryrefslogtreecommitdiff
path: root/misc/cgo/test/issue1635.go
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cgo/test/issue1635.go')
-rw-r--r--misc/cgo/test/issue1635.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/misc/cgo/test/issue1635.go b/misc/cgo/test/issue1635.go
index 6bfe110fdf..cc4be9093d 100644
--- a/misc/cgo/test/issue1635.go
+++ b/misc/cgo/test/issue1635.go
@@ -14,6 +14,11 @@ void scatter() {
printf("scatter = %p\n", p);
}
+// Adding this explicit extern declaration makes this a test for
+// https://gcc.gnu.org/PR68072 aka https://golang.org/issue/13344 .
+// It used to cause a cgo error when building with GCC 6.
+extern int hola;
+
// this example is in issue 3253
int hola = 0;
int testHola() { return hola; }