diff options
author | Ian Lance Taylor <iant@golang.org> | 2020-11-26 20:03:57 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-12-02 08:27:34 -0800 |
commit | ed281e4a944a8b62e66d160b0910bd2be9ef9330 (patch) | |
tree | 7469c3403076547ce5f14af4366513bed4ef3a37 /gcc/testsuite/go.test/test | |
parent | c7932d5626a81a35686a3992b5a02570aba5cd0b (diff) | |
download | gcc-ed281e4a944a8b62e66d160b0910bd2be9ef9330.zip gcc-ed281e4a944a8b62e66d160b0910bd2be9ef9330.tar.gz gcc-ed281e4a944a8b62e66d160b0910bd2be9ef9330.tar.bz2 |
compiler: improve mixed named/unnamed parameter error message
Use the same error as the current gc compiler.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/273628
Diffstat (limited to 'gcc/testsuite/go.test/test')
-rw-r--r-- | gcc/testsuite/go.test/test/fixedbugs/bug388.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/testsuite/go.test/test/fixedbugs/bug388.go b/gcc/testsuite/go.test/test/fixedbugs/bug388.go index d41f9ea..2d50850 100644 --- a/gcc/testsuite/go.test/test/fixedbugs/bug388.go +++ b/gcc/testsuite/go.test/test/fixedbugs/bug388.go @@ -1,6 +1,6 @@ // errorcheck -// Copyright 2011 The Go Authors. All rights reserved. +// 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. @@ -9,12 +9,12 @@ package main import "runtime" -func foo(runtime.UintType, i int) { // ERROR "cannot declare name runtime.UintType|named/anonymous mix|undefined identifier" +func foo(runtime.UintType, i int) { // ERROR "cannot declare name runtime.UintType|mixed named and unnamed|undefined identifier" println(i, runtime.UintType) // GCCGO_ERROR "undefined identifier" } func bar(i int) { - runtime.UintType := i // ERROR "cannot declare name runtime.UintType|non-name on left side|undefined identifier" + runtime.UintType := i // ERROR "non-name runtime.UintType|non-name on left side|undefined identifier" println(runtime.UintType) // GCCGO_ERROR "invalid use of type|undefined identifier" } |