summaryrefslogtreecommitdiff
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
commitc917884d5a5057cd5afcb5c9f72cb93c9105a7c5 (patch)
treedf2e4b5c4c47f9343b5593e06979b50720b00234 /test/func1.go
parentddfee3cb08ecf99b5c7f52c02216f26f18836699 (diff)
downloadgo-c917884d5a5057cd5afcb5c9f72cb93c9105a7c5.tar.gz
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 895fe94b8..2c767d21d 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;
}