aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/go.test/test/fixedbugs/bug335.dir/a.go
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/go.test/test/fixedbugs/bug335.dir/a.go')
-rw-r--r--gcc/testsuite/go.test/test/fixedbugs/bug335.dir/a.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/testsuite/go.test/test/fixedbugs/bug335.dir/a.go b/gcc/testsuite/go.test/test/fixedbugs/bug335.dir/a.go
index 5a8112a9d..256c110d7 100644
--- a/gcc/testsuite/go.test/test/fixedbugs/bug335.dir/a.go
+++ b/gcc/testsuite/go.test/test/fixedbugs/bug335.dir/a.go
@@ -4,6 +4,8 @@
package a
-import "./b"
+type T interface{}
-var Bar = b.Foo
+func f() T { return nil }
+
+var Foo T = f()