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
commite8907d80fc5aba60cca1f287397ff0736b43de3b (patch)
treedf2e4b5c4c47f9343b5593e06979b50720b00234 /test/func1.go
parent6827f966c8e1f1b0f59ec5885f78bfe44073f1a6 (diff)
downloadgolang-e8907d80fc5aba60cca1f287397ff0736b43de3b.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;
}