diff --git a/test/bugs/bug195.go b/test/bugs/bug195.go new file mode 100644 index 0000000000..4d679e2f34 --- /dev/null +++ b/test/bugs/bug195.go @@ -0,0 +1,12 @@ +// errchk $G $D/$F.go + +// Copyright 2009 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. + +package main + +type I1 interface { I2 } // ERROR "interface" +type I2 int + +type I3 interface { int } // ERROR "interface" diff --git a/test/golden.out b/test/golden.out index a813eba85f..207313f590 100644 --- a/test/golden.out +++ b/test/golden.out @@ -177,3 +177,6 @@ errchk: bugs/bug193.go:14: missing expected error: 'shift' =========== bugs/bug194.go BUG should compile and run $RUNFILE: line 1: PID Segmentation fault (core dumped) $G $D/$F.go + +=========== bugs/bug195.go +bugs/bug195.go:9: BUG: errchk: compiler crashed