aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/go.test/test/bugs/bug395.go
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/go.test/test/bugs/bug395.go')
-rw-r--r--gcc-4.9/gcc/testsuite/go.test/test/bugs/bug395.go25
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/go.test/test/bugs/bug395.go b/gcc-4.9/gcc/testsuite/go.test/test/bugs/bug395.go
new file mode 100644
index 000000000..4632dcd0f
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/go.test/test/bugs/bug395.go
@@ -0,0 +1,25 @@
+// echo bug395 is broken # takes 90+ seconds to break
+// # $G $D/$F.go || echo bug395
+
+// NOTE: This test is not run by 'run.go' and so not run by all.bash.
+// To run this test you must use the ./run shell script.
+
+// Copyright 2011 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.
+
+// Issue 1909
+// Would OOM due to exponential recursion on Foo's expanded methodset in nodefmt
+package test
+
+type Foo interface {
+ Bar() interface {
+ Foo
+ }
+ Baz() interface {
+ Foo
+ }
+ Bug() interface {
+ Foo
+ }
+}