diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/go.test/test/fixedbugs/bug398.go')
-rw-r--r-- | gcc-4.9/gcc/testsuite/go.test/test/fixedbugs/bug398.go | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/go.test/test/fixedbugs/bug398.go b/gcc-4.9/gcc/testsuite/go.test/test/fixedbugs/bug398.go new file mode 100644 index 000000000..1dd3fa421 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/go.test/test/fixedbugs/bug398.go @@ -0,0 +1,24 @@ +// compile + +// Copyright 2012 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. + +// Used to crash compiler in interface type equality check. + +package p + +type I1 interface { + F() interface{I1} +} + +type I2 interface { + F() interface{I2} +} + +var v1 I1 +var v2 I2 + +func f() bool { + return v1 == v2 +} |