diff options
Diffstat (limited to 'gcc/testsuite/go.test/test/declbad.go')
-rw-r--r-- | gcc/testsuite/go.test/test/declbad.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/testsuite/go.test/test/declbad.go b/gcc/testsuite/go.test/test/declbad.go index ff53ab0d7c5..728eceb7f1e 100644 --- a/gcc/testsuite/go.test/test/declbad.go +++ b/gcc/testsuite/go.test/test/declbad.go @@ -41,7 +41,8 @@ func main() { { // multiline no new variables i := f1 - i := func() { // ERROR "redeclared|no new|incompatible" + i := func() int { // ERROR "redeclared|no new|incompatible" + return 0 } _ = i } |