aboutsummaryrefslogtreecommitdiff
path: root/test/func1.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2008-09-19 14:39:49 -0700
committerIan Lance Taylor <iant@golang.org>2008-09-19 14:39:49 -0700
commit66b261a0828048b91b62588b84528b46489bf770 (patch)
treedf2e4b5c4c47f9343b5593e06979b50720b00234 /test/func1.go
parent995f938ae39eba0cea90f3e5fdbc0f619ea44d93 (diff)
downloadgo-66b261a0828048b91b62588b84528b46489bf770.tar.gz
go-66b261a0828048b91b62588b84528b46489bf770.zip
Check for specific error messages in the testsuite. This
permits testing that the compiler emits error messages for specific lines that match egrep regexps. The desired error messages are expressed using comments of the form // ERROR "regexp" R=r DELTA=90 (73 added, 8 deleted, 9 changed) OCL=15513 CL=15566
Diffstat (limited to 'test/func1.go')
-rw-r--r--test/func1.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/func1.go b/test/func1.go
index 895fe94b8d..2c767d21d5 100644
--- a/test/func1.go
+++ b/test/func1.go
@@ -13,6 +13,6 @@ func f1(a int) (int, float) { // BUG (not caught by compiler): multiple return
}
-func f2(a int) (a int, b float) { // return value names must be different from parameter names
+func f2(a int) (a int, b float) { // ERROR "redeclared|definition"
return 8, 8.0;
}